* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reset-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}


.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    max-width: 520px;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

.glass-card h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.glass-card .subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}


.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, #667eea 0%, #2563ff 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.step.completed {
    background: rgba(102, 234, 102, 0.3);
    color: #fff;
}

.step-line {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step-line.completed {
    background: rgba(102, 234, 102, 0.5);
}


.form-step {
    display: none;
    animation: slideIn 0.5s ease;
}

.form-step.active {
    display: block;
}


.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.form-control {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 0.85rem 1rem 0.85rem 3.2rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: 56px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    outline: none;
    color: #fff;
}


.floating-label {
    position: absolute;
    left: 3.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 0.3rem;
}

.form-control:focus+.floating-label,
.form-control:not(:placeholder-shown)+.floating-label {
    top: -10px;
    left: 2.5rem;
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(to bottom, transparent 50%, rgba(102, 126, 234, 0.8) 50%);
}


.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #fff;
}


.otp-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 50px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.otp-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    outline: none;
    transform: scale(1.05);
}

.otp-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}


.message-box {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    animation: slideIn 0.5s ease;
}

.message-success {
    background: linear-gradient(135deg, #2ed573 0%, #17c964 100%);
    border: 1px solid rgba(74, 224, 74, 0.4);
    border-radius: 20px;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.message-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #fff;
}


.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #2563ff 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
    transform: translateY(0);
}

.btn-submit:hover {
    transform: translateY(-4px);
}

.btn-submit:active {
    transform: translateY(6px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}


.back-link {
    margin-top: 1.5rem;
    text-align: center;
}

.glass-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.glass-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}


.success-icon {
    font-size: 4rem;
    color: #66ea66;
    text-align: center;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    margin-left: 0.5rem;
    display: none;
}

.form-group.error .form-control {
    border-color: #ff6b6b;
}

.form-group.error .error-message {
    display: block;
}


@media (max-width: 768px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }

    .glass-card h2 {
        font-size: 2rem;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .glass-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .glass-card h2 {
        font-size: 1.75rem;
    }

    .otp-container {
        gap: 0.3rem;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .step-line {
        width: 20px;
    }
}

.otp-hint {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}



[data-theme="dark"] .otp-hint,
body.dark .otp-hint {
    color: rgba(255, 255, 255, 0.9);
}


[data-theme="dark"] .step,
body.dark .step {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .step.active,
body.dark .step.active {
    background: linear-gradient(135deg, #667eea 0%, #2563ff 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

[data-theme="dark"] .step.completed,
body.dark .step.completed {
    background: linear-gradient(135deg, #2ed573 0%, #17c964 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.5);
}

[data-theme="dark"] .step-line.completed,
body.dark .step-line.completed {
    background: linear-gradient(90deg, #2ed573, #17c964);
    box-shadow: 0 0 8px rgba(46, 213, 115, 0.5);
}


[data-theme="dark"] .btn-submit,
body.dark .btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #2563ff 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

[data-theme="dark"] .btn-submit:hover,
body.dark .btn-submit:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

[data-theme="dark"] .btn-submit:disabled,
body.dark .btn-submit:disabled {
    background: linear-gradient(135deg, #667eea 0%, #2563ff 100%);
    box-shadow: none;
}


[data-theme="dark"] .otp-input,
body.dark .otp-input {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

[data-theme="dark"] .otp-input::placeholder,
body.dark .otp-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .otp-input:focus,
body.dark .otp-input:focus {
    border-color: #7c8cff;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.55);
}


[data-theme="dark"] .back-link .glass-link,
body.dark .back-link .glass-link {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

[data-theme="dark"] .back-link .glass-link:hover,
body.dark .back-link .glass-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}



[data-theme="light"] .otp-hint,
body:not(.dark) .otp-hint {
    color: #5B6B9B;
}

[data-theme="light"] .step,
body:not(.dark) .step {
    background: rgba(23, 45, 157, 0.08);
    color: rgba(23, 45, 157, 0.5);
}

[data-theme="light"] .step.active,
body:not(.dark) .step.active {
    background: linear-gradient(135deg, #00E2E0, #00A9F2 50%, #787CFE);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 169, 242, 0.35);
}

[data-theme="light"] .step.completed,
body:not(.dark) .step.completed {
    background: linear-gradient(135deg, #2ed573, #17c964);
    color: #fff;
    box-shadow: 0 4px 15px rgba(23, 45, 157, 0.15);
}

[data-theme="light"] .step-line.completed,
body:not(.dark) .step-line.completed {
    background: linear-gradient(90deg, #2ed573, #17c964);
}

[data-theme="light"] .otp-input,
body:not(.dark) .otp-input {
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid rgba(23, 45, 157, 0.15);
    color: #172D9D;
}

[data-theme="light"] .otp-input::placeholder,
body:not(.dark) .otp-input::placeholder {
    color: rgba(23, 45, 157, 0.35);
}

[data-theme="light"] .otp-input:focus,
body:not(.dark) .otp-input:focus {
    background: #fff;
    border-color: #00A9F2;
    box-shadow: 0 0 0 5px rgba(0, 169, 242, 0.1),
        0 12px 30px rgba(0, 169, 242, 0.15);
}

[data-theme="light"] .btn-submit,
body:not(.dark) .btn-submit {
    background: linear-gradient(135deg, #00E2E0, #00A9F2 50%, #787CFE);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 169, 242, 0.25);
}

[data-theme="light"] .btn-submit:hover,
body:not(.dark) .btn-submit:hover {
    box-shadow: 0 20px 45px rgba(0, 169, 242, 0.35);
}

[data-theme="light"] .back-link .glass-link,
body:not(.dark) .back-link .glass-link {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(23, 45, 157, 0.12);
    color: #172D9D;
}

[data-theme="light"] .back-link .glass-link:hover,
body:not(.dark) .back-link .glass-link:hover {
    background: #fff;
    border-color: #00A9F2;
    box-shadow: 0 4px 15px rgba(0, 169, 242, 0.2);
}

[data-theme="light"] .glass-card h2,
body:not(.dark) .glass-card h2 {
    text-shadow: none;
}

[data-theme="light"] .subtitle,
body:not(.dark) .subtitle {
    color: #5B6B9B;
}
[data-theme="light"] .hero-title .text-gradient,
body:not(.dark) .hero-title .text-gradient {
    background: linear-gradient(120deg, #4C5FD7, #9a6fe077 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="dark"] .hero-title .text-gradient,
body.dark .hero-title .text-gradient {
    background: linear-gradient(120deg, #8FA6FF, #C9A6FF 50%, #FFA6D8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}