/* Custom CSS for Esqueci (Password Recovery) Page */
/* Based on login and comece page styling */

/* Background and layout */
.bg-gray.fullfit {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Login box styling */
.login-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Brand/Logo styling */
.brand-login {
    text-align: center;
    margin-bottom: 30px;
}

.brand-login img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Message styling */
.msg {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.msg-done {
    background: #f0fdf4 !important;
    border-color: #22c55e;
    color: #166534;
}

.msg-done i {
    color: #22c55e;
    font-size: 20px;
    margin-right: 8px;
}

.msg-error {
    background: #fef2f2 !important;
    border-color: #ef4444;
    color: #991b1b;
}

.msg-error i {
    color: #ef4444;
    font-size: 20px;
    margin-right: 8px;
}

/* Form field styling */
.form-field-icon {
    position: relative;
    margin-bottom: 20px;
}

.form-field-icon input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-field-icon input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-field-icon .form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 18px;
    z-index: 2;
}

/* Submit button styling */
.form-field-submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    gap: 8px;
    width: 100%;
}

.form-field-submit button:hover {
    transform: translateY(-2px);
    background: #16a34a;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.form-field-submit button:active {
    transform: translateY(0);
}

.form-field-submit button i {
    font-size: 16px;
    color: #ffffff !important;
}

/* Back button styling */
.backbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #4a5568;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    font-family: 'Poppins', sans-serif;
    gap: 8px;
    width: 100%;
}

/* Aplicar cor diretamente ao backbutton sem depender do hover */
.backbutton {
    background: #e2e8f0 !important;
    color: #2d3748 !important;
}

.backbutton:hover {
    background: #e2e8f0;
    color: #2d3748;
    text-decoration: none;
    transform: translateY(-1px);
}

.backbutton i {
    font-size: 16px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .bg-gray.fullfit {
        padding: 20px;
    }
    
    .login-box {
        padding: 30px 25px;
        margin: 0;
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .brand-login img {
        max-height: 60px;
    }
    
    .msg {
        font-size: 15px;
        padding: 16px;
    }
    
    .form-field-icon input {
        padding: 14px 14px 14px 46px;
        font-size: 15px;
    }
    
    .form-field-submit button,
    .backbutton {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Animation */
.login-box {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove default styling */
.login {
    background: none !important;
    padding: 0 !important;
    min-height: auto !important;
}

.login .container {
    max-width: none !important;
    padding: 0 !important;
}