body {
    background: linear-gradient(135deg, #6c757d, #343a40);
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.logo {
    max-width: 180px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 1.5rem;
}

p.text-center {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Formulários */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.2);
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    color: #ffc107;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: left;
    display: block;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Botões */
.btn-custom {
    background: #ffc107;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 10px;
    transition: all 0.3s;
    color: #343a40;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.btn-custom:hover {
    background: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    margin-left: 10px;
    transition: all 0.3s;
    border-radius: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    transform: translateY(-3px);
}

/* Alertas */
.alert-custom {
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid;
}

.alert-custom i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-success {
    border-color: #28a745;
    color: #d4edda;
}

.alert-error {
    border-color: #dc3545;
    color: #f8d7da;
    animation: shake 0.5s ease;
}

.alert-warning {
    border-color: #ffc107;
    color: #fff3cd;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Código de verificação */
.code-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 2rem 0;
}

.code-input {
    width: 50px;
    height: 55px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s;
}

.code-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Container de senha */
.password-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-container label {
    color: #ffc107;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.password-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #fff;
    padding: 0.75rem;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
}

.password-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.toggle-password {
    background: transparent !important;
    border: none !important;
    color: #ffc107;
    padding: 0.75rem 0.5rem;
    transition: all 0.3s;
}

.toggle-password:hover {
    color: #ffca2c;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

footer a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #e0a800;
    text-decoration: underline;
}

/* Medidas responsivas */
@media (max-width: 576px) {
    .login-container {
        padding: 40px 25px;
        margin: 15px;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .code-input-container {
        gap: 8px;
    }
    
    .btn-custom, .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .mt-4 {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Animações extras */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-custom:active {
    transform: translateY(1px);
}

/* Estilos adicionados para melhorar a formatação dos formulários */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1 0 auto;
    min-width: 180px;
}

.password-container {
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .mt-4.button-group {
        flex-direction: row;
    }
}
