/* Forgot Password Page Styles */

.forgot-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oxford-blue) 0%, var(--penn-blue) 50%, var(--indigo-dye) 100%);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.forgot-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(18,130,162,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.forgot-container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 2;
    background: rgba(254, 252, 251, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(18, 130, 162, 0.2);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.step-container {
    animation: fadeIn 0.3s ease;
}

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

/* Icon Styles */
.forgot-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--cerulean), var(--indigo-dye));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.forgot-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.forgot-icon.success-icon {
    background: linear-gradient(135deg, var(--cerulean), #0ea5e9);
}

.forgot-icon.success-check {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation: none;
}

.forgot-icon.success-check svg {
    fill: var(--white);
    stroke: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(18, 130, 162, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(18, 130, 162, 0);
    }
}

/* Typography */
.forgot-container h1 {
    font-size: clamp(1.75rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.forgot-subtitle {
    font-size: 1rem;
    color: rgba(254, 252, 251, 0.7);
    margin-bottom: 0.5rem;
}

.user-email {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cerulean);
    margin-bottom: 2rem;
    word-break: break-all;
}

.success-message {
    font-size: 1rem;
    color: #22c55e;
    margin-top: 1rem;
    font-weight: 500;
}

/* Form Styles */
.forgot-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.form-group input:not(.code-input) {
    padding: 1rem 1.25rem;
    background: rgba(254, 252, 251, 0.08);
    border: 2px solid rgba(18, 130, 162, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(254, 252, 251, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: var(--cerulean);
    background: rgba(254, 252, 251, 0.1);
}

/* Code Input Boxes */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Inter', monospace;
    background: rgba(254, 252, 251, 0.08);
    border: 2px solid rgba(18, 130, 162, 0.3);
    border-radius: 12px;
    color: var(--white);
    transition: all 0.3s ease;
    caret-color: var(--cerulean);
}

.code-input:focus {
    outline: none;
    border-color: var(--cerulean);
    background: rgba(254, 252, 251, 0.12);
    box-shadow: 0 0 0 3px rgba(18, 130, 162, 0.2);
    transform: translateY(-2px);
}

.code-input.filled {
    border-color: var(--cerulean);
    background: rgba(18, 130, 162, 0.15);
}

.code-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Password Checklist */
.password-checklist {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(18, 130, 162, 0.1);
    border-radius: 10px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(254, 252, 251, 0.6);
    margin: 0.4rem 0;
    transition: color 0.2s ease;
}

.checklist-item .check-icon {
    font-size: 0.9rem;
    color: #ef4444;
    transition: color 0.2s ease;
}

.checklist-item.valid {
    color: #22c55e;
}

.checklist-item.valid .check-icon {
    color: #22c55e;
}

/* Password Match */
.password-match {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.password-match.match {
    color: #22c55e;
}

.password-match.no-match {
    color: #ef4444;
}

/* Error Message */
.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.25rem;
    text-align: center;
}

/* Buttons */
.btn-primary-action {
    padding: 1.1rem 2rem;
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.btn-primary-action:hover:not(:disabled) {
    background: #ff7d4d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary-action .btn-icon {
    width: 20px;
    height: 20px;
}

/* Resend Section */
.resend-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(18, 130, 162, 0.2);
}

.resend-section p {
    color: rgba(254, 252, 251, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.btn-resend {
    background: transparent;
    border: 2px solid var(--cerulean);
    color: var(--cerulean);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-resend:hover:not(:disabled) {
    background: var(--cerulean);
    color: var(--white);
}

.btn-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(18, 130, 162, 0.3);
    color: rgba(18, 130, 162, 0.5);
}

.resend-timer {
    color: var(--cerulean);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Back Link */
.back-link {
    margin-top: 2rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(254, 252, 251, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--cerulean);
}

.back-arrow {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forgot-section {
        padding: 7rem 1.5rem 3rem;
    }

    .forgot-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .forgot-container {
        padding: 1.5rem;
    }

    .forgot-icon {
        width: 60px;
        height: 60px;
    }

    .forgot-icon svg {
        width: 30px;
        height: 30px;
    }

    .code-inputs {
        gap: 0.5rem;
    }

    .code-input {
        width: 42px;
        height: 52px;
        font-size: 1.25rem;
    }

    .form-group input:not(.code-input),
    .btn-primary-action {
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 360px) {
    .code-input {
        width: 38px;
        height: 48px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .code-inputs {
        gap: 0.35rem;
    }
}
