/* Esqueci Senha - Modern Style for CFC */
:root {
    --primary-color: #15626e;
    --primary-dark: #094c5e;
    --primary-gradient: linear-gradient(135deg, #15626e 0%, #094c5e 100%);
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --input-border: #ddd;
    --input-focus: #4a90e2;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--primary-gradient);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -120px;
    left: -60px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.forgot-wrapper::before {
    content: '';
    position: fixed;
    top: 45%;
    right: 12%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.forgot-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.forgot-container {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    padding: 50px 50px 40px;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.forgot-logo {
    display: block;
    max-height: 50px;
    width: auto;
    margin: 0 auto 28px;
}

.forgot-header {
    text-align: center;
    margin-bottom: 28px;
}

.forgot-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.forgot-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.alert {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert .close {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
    flex-shrink: 0;
}

.alert .close:hover {
    opacity: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

#email.form-control {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: normal;
}

#email.form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    outline: none;
}

#email.form-control::placeholder {
    color: #b0bec5;
}

input:focus:required:invalid, select:focus:required:invalid, textarea:focus:required:invalid {
    color: var(--text-color);
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.btn-submit:hover {
    background-color: #000;
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.back-to-login{
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.back-to-login a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.forgot-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 1;
}

#whatsapp {
    border: solid 2px #ffffff;
    background-color: #ffffff;
}

#whatsapp span, #whatsapp i {
    color: #15626e;
    font-weight: bold;
}

/* Responsivo mobile */
@media (max-width: 480px) {
    .forgot-wrapper {
        padding: 24px 16px;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .forgot-container {
        padding: 36px 28px 28px;
        border-radius: 12px;
    }

    .forgot-title {
        font-size: 1.5rem;
    }

    .form-control {
        height: 52px;
        font-size: 16px; 
    }

    .btn-submit {
        height: 52px;
    }
}