/* =============================================================
 FILE: Forgot-Account.css
 PURPOSE: Global CSS include for Forgot Account, shared across multiple pages.

 USED BY:
   - /Forgot-Account/Change-Password.php
   - /Forgot-Account/Forgot-Password.php
   - /Forgot-Account/Process-Security-Code.php
 ============================================================= */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fb;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --accent-blue: #1a56db;
    --accent-green: #0e9f6e;
    --accent-blue-light: rgba(26, 86, 219, 0.07);
    --accent-green-light: rgba(14, 159, 110, 0.07);
    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-muted: #8492a6;
    --border-subtle: rgba(26, 86, 219, 0.1);
    --border-medium: rgba(26, 86, 219, 0.18);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.02), 0 6px 12px rgba(0,0,0,0.03), 0 16px 32px rgba(0,0,0,0.04);
    --shadow-layered: 0 2px 4px rgba(0,0,0,0.02), 0 8px 16px rgba(0,0,0,0.04), 0 24px 48px rgba(0,0,0,0.06), 0 48px 96px rgba(0,0,0,0.08);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Playfair Display', Georgia, serif;
    --font-display: 'DM Serif Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

#nature-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    padding: 45px 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-layered);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-subtle);
}

.brand {
    font-family: var(--font-display);
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-subtle);
    position: relative;
    transition: background-color 360ms cubic-bezier(0.4, 0.0, 0.2, 1), border-color 360ms cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 360ms cubic-bezier(0.4, 0.0, 0.2, 1), opacity 360ms cubic-bezier(0.4, 0.0, 0.2, 1), transform 360ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.step-dot.active {
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(26, 86, 219, 0.3);
    transform: scale(1.2);
}

.step-dot.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(26, 86, 219, 0.2);
    animation: pulse-ring 1500ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.step-dot.completed {
    background: var(--accent-green);
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--accent-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow:
        0 2px 4px rgba(26, 86, 219, 0.04),
        0 6px 20px rgba(26, 86, 219, 0.09),
        0 16px 36px rgba(26, 86, 219, 0.05);
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-blue);
}

.email-badge {
    display: inline-block;
    background: var(--accent-blue-light);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 20px;
}

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

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

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-light);
}

input::placeholder {
    color: var(--text-muted);
}

.code-input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.code-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.code-digit:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-light);
}

.code-digit.filled {
    border-color: var(--accent-green);
    background: var(--accent-green-light);
}

#security_code {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.timer {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 18px 0;
}

.timer span {
    color: #dc2626;
    font-weight: 600;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
    padding: 5px;
}

.toggle-password:hover {
    color: var(--accent-blue);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.password-requirements {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 15px;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.password-requirements h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0;
    transition: var(--transition);
}

.requirement.valid {
    color: var(--accent-green);
}

.requirement .icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-subtle);
    transition: var(--transition);
    flex-shrink: 0;
}

.requirement.valid .icon {
    background: var(--accent-green);
    color: white;
}

.requirement .icon svg {
    width: 12px;
    height: 12px;
}

button[type="submit"] {
    width: 100%;
    padding: 14px 28px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

button[type="submit"]:hover {
    background: #1548b8;
    transform: translateY(-1px);
    box-shadow:
        0 2px 4px rgba(26, 86, 219, 0.07),
        0 4px 12px rgba(26, 86, 219, 0.22),
        0 14px 28px rgba(26, 86, 219, 0.10);
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: var(--accent-blue-light);
    border-color: var(--border-medium);
}

.message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.message.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.message.success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
}

.login-link {
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-link a:hover {
    color: #1548b8;
}

.captcha-section {
    margin-top: 15px;
}

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 100%;
}

.footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

@media (max-width: 480px) {
    .container {
        padding: 35px 23px;
        margin: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .code-digit {
        width: 42px;
        height: 52px;
        font-size: 1.3rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 24px 14px;
        margin: 8px;
    }

    h2 {
        font-size: 1.35rem;
    }

    .subtitle {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }

    .icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .icon-wrapper svg {
        width: 26px;
        height: 26px;
    }

    .code-digit {
        width: 36px;
        height: 46px;
        font-size: 1.1rem;
    }

    .code-input-wrapper {
        gap: 6px;
    }

    .password-requirements {
        padding: 12px;
    }

    .email-badge {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
}

@media (hover: none) and (pointer: coarse) {
    input[type="email"],
    input[type="password"],
    input[type="text"] {
        min-height: 48px;
    }

    button[type="submit"],
    .btn-secondary {
        min-height: 48px;
    }

    .code-digit {
        min-height: 48px;
    }

    .toggle-password {
        min-width: 44px;
        min-height: 44px;
    }

    .login-link a {
        display: inline-block;
        min-height: 48px;
        line-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
