:root {
    --primary-purple: #6d46c1;
    /* Slightly deeper purple based on the image */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card {
    background: var(--card-bg);
    width: 100%;
    max-width: 440px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Header Section */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.go-back {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
}

.step-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.progress-ring-1 {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    transform: rotate(45deg);
}

.progress-ring-2 {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--primary-purple);
    border-right: 2px solid var(--primary-purple);
    border-radius: 50%;
    transform: rotate(45deg);
}

.progress-ring-3 {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--primary-purple);
    border-right: 2px solid var(--primary-purple);
    border-bottom: 2px solid var(--primary-purple);
    border-radius: 50%;
    transform: rotate(45deg);
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 12px;
}

/* Verification Code Inputs */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.otp-input {
    width: 52px;
    height: 52px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.otp-input:focus {
    border-color: var(--primary-purple);
}

.otp-input.error {
    border-color: #F53003;
}

/* Button */
.btn-submit {
    width: 100%;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: opacity 0.2s;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.footer-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.resend-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

#resend-countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.timer-icon {
    color: var(--primary-purple);
}

#resend-timer {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--primary-purple);
}

input.error {
    border-color: #F53003;
}

.error-message {
    color: #F53003;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

.hidden {
    display: none;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background-color: #E9E8E7;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary-purple);
}

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

.validation-rules {
    margin-top: 12px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: color 0.2s;
}

.rule-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.rule-item.valid {
    color: #059669;
    /* Green color */
}

.rule-item.valid svg {
    opacity: 1;
    color: #059669;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #059669;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    border: none;
    animation: slideIn 0.5s ease-out forwards;
}

.toast.hide {
    animation: fadeOut 0.5s ease-in forwards;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.footer {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}