:root {
    --primary-color: #2272b1;
    --secondary-color: #4caf50;
    --accent-color: #ffa726;
    --danger-color: #f44336;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #212121;
    --light-text: #757575;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo i {
    margin-right: 8px;
    font-size: 1.5rem;
}

.header-actions {
    margin-left: auto;
}

.header-actions a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.forgot-password-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    text-align: center;
    margin-bottom: 24px;
}

.welcome-section h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.welcome-section p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.forgot-password-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease forwards;
}

.steps-container {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.steps-container:before {
    content: "";
    position: absolute;
    top: 15px;
    left: 25px;
    right: 25px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
}

.step.completed .step-number {
    background-color: var(--secondary-color);
}

.step-label {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--secondary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-field {
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 2px rgba(34, 114, 177, 0.1);
}

.input-field .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.verification-code-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 2px rgba(34, 114, 177, 0.1);
}

.button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.button:hover {
    background-color: #1a5f9c;
}

.button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.timer {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.resend-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.resend-link:hover {
    text-decoration: underline;
}

.form-note {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 15px;
    text-align: center;
}

.form-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-note a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    cursor: pointer;
}

/* Step content display */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

/* Error message */
.error-message {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* Success message */
.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2e7d32;
    display: none;
}

/* Footer Styles */
footer {
    background-color: white;
    padding: 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.75rem;
    color: var(--light-text);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

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

@media (max-width: 480px) {
    .header-actions {
        margin-left: auto;
    }

    .verification-code-container {
        gap: 8px;
    }

    .code-input {
        width: 45px;
        height: 55px;
        font-size: 1.3rem;
    }
}
