* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(rgba(5, 15, 25, 0.5), rgba(10, 20, 35, 0.6)), 
                url('../images/backgrounds/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #e2e8f0;
}
.login-logo {
   
    margin-bottom: 30px; /* Adjusted spacing */
    text-align: center;
}
.container {
    background: rgba(15, 25, 40, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(111, 238, 252, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(111, 238, 252, 0.1);
    width: 500px;
    max-width: 500px;
    min-width: 500px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

@media (max-width: 520px) {
    .container {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

.header {
    background: rgba(15, 25, 40, 0.6);
    color: white;
    text-align: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(111, 238, 252, 0.2);
}

.header h3 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
}

.progress-section {
    display: block;
    transition: all 0.3s ease;
}

.progress-section.hidden {
    display: none;
}

.form-container {
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(111, 238, 252, 0.2);
    width: 100%;
}

/* Normal/Inactive Button */
.mode-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-bottom: 2px solid transparent;
    background: rgba(30, 45, 65, 0.5); /* Darker subdued background */
    color: #94a3b8; /* Muted text color */
    cursor: pointer;
    font-weight: 500; /* Slightly less bold */
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 6px;
    opacity: 0.7; /* Slightly transparent */
}

/* Hover state for inactive buttons */
.mode-button:hover {
    color: #cbd5e1;
    background: rgba(40, 55, 75, 0.6);
    opacity: 0.9;
}

/* Active Button - Make it POP! */
.mode-button.active {
    color: #0a1520; /* Dark text for contrast */
    background: #6eedfc; /* Bright solid cyan */
    border: none;
    border-bottom: 3px solid #3dd4e6; /* Darker cyan border for depth */
    border-radius: 6px;
    font-weight: 700; /* Bolder text */
    opacity: 1;
    box-shadow: 0 4px 12px rgba(110, 237, 252, 0.4), /* Outer glow */
                0 0 20px rgba(110, 237, 252, 0.2); /* Subtle halo */
    transform: translateY(-1px); /* Slightly raised */
}

/* Remove hover effect on active button */
.mode-button.active:hover {
    color: #0a1520;
    background: #6eedfc;
    transform: translateY(-1px);
}
.step {
    display: none;
    width: 100%;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

form {
    width: 100%;
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e2e8f0;
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 14px;
    background: rgba(20, 35, 55, 0.7);
    border: 1px solid rgba(111, 238, 252, 0.3);
    border-radius: 6px;
    font-size: 16px;
    color: #e2e8f0;
    transition: all 0.3s;
    box-sizing: border-box;
}

input:focus {
    border-color: #6eedfc;
    outline: none;
    background: rgba(20, 35, 55, 0.9);
    box-shadow: 0 0 0 3px rgba(111, 238, 252, 0.2);
}

/* ⭐ Submit buttons - both type="submit" and type="button" */
button[type="submit"],
button#submitBtn,
.submit-btn {
    background: #6eedfc;
    color: #0a1520;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(111, 238, 252, 0.3);
}

button[type="submit"]:hover,
button[type="button"]:hover,
.submit-btn:hover {
    color: #0a1520;
    background: #5dd4e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 238, 252, 0.4);
}

button[type="submit"]:disabled,
button[type="button"]:disabled,
.submit-btn:disabled {
    background: rgba(74, 85, 104, 0.6);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}
.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.error {
    background: rgba(200, 50, 50, 0.2);
    color: #fc8181;
    border: 1px solid rgba(200, 50, 50, 0.4);
}

.message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #68d391;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.verified-email {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.verified-email span {
    font-weight: 600;
    margin-left: 5px;
}

.verified-email svg {
    flex-shrink: 0;
}

.terms-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}

.terms-container input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #6eedfc;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-container label {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

.terms-container a {
    color: #6eedfc;
    text-decoration: none;
}

.terms-container a:hover {
    text-decoration: underline;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.progress-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #6feefc 25%, #805ad5 25%, #805ad5 50%, #ff9500 50%, #ff9500 75%, rgba(56,161,105,0.2) 75%);
    width: 100%;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.step-text {
    color: #a0aec0;
    font-size: 13px;
    text-align: center;
}

.active-step .step-text {
    color: #ffffff;
}

.info-badge {
    width: 24px;
    height: 24px;
    background: #6feefc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.tooltip-content {
    position: absolute;
    width: 300px;
    background: rgba(20, 35, 55, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    top: 120%;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
    border: 1px solid rgba(111, 238, 252, 0.3);
}

.info-badge:hover .tooltip-content {
    opacity: 1;
    pointer-events: auto;
}

.tooltip-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.tooltip-step:last-child {
    margin-bottom: 0;
}

.tooltip-number {
    background: #6feefc;
    color: black;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tooltip-step p {
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
}

.help-note {
    background: rgba(111, 238, 252, 0.15);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6feefc;
    margin-top: 20px;
    color: #e2e8f0;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.help-note p {
    margin: 0;
}

.help-note-otp {
    background: rgba(128, 90, 213, 0.15);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #805ad5;
    margin-top: 20px;
    color: #e2e8f0;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.help-note-otp p {
    margin: 0;
}

.validation-instructions {
    color: #a0aec0;
    font-size: 14px;
    margin-top: 5px;
}

.input-group.valid input {
    border-color: #68d391;
}

.input-group.invalid input {
    border-color: #fc8181;
}

.validation-error {
    display: none;
    color: #fc8181;
    font-size: 14px;
    margin-top: 5px;
}

.input-group.invalid .validation-error {
    display: block;
}

/* Input with Icons Wrapper */
.input-icon-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 1px solid rgba(111, 238, 252, 0.3);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(20, 35, 55, 0.7);
    color: #e2e8f0;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-icon-wrapper input:focus {
    outline: none;
    border-color: #6eedfc;
    background: rgba(20, 35, 55, 0.9);
    box-shadow: 0 0 0 3px rgba(111, 238, 252, 0.2);
}

/* Left Icon */
.input-icon-wrapper .icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Right Icon (Checkmark) */
.input-icon-wrapper .icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Show checkmark when valid */
.input-group.valid .icon-right {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Change left icon color on focus or valid */
.input-icon-wrapper input:focus ~ .icon-left,
.input-group.valid .icon-left {
    color: #6eedfc;
}

/* Invalid state */
.input-group.invalid .input-icon-wrapper input {
    border-color: #fc8181;
    background: rgba(252, 129, 129, 0.15);
}

.input-group.invalid .icon-left {
    color: #fc8181;
}

/* Resend OTP Styles */
.resend-container {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(78, 124, 255, 0.15);
    border: 1px solid rgba(111, 238, 252, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.timer-text {
    margin: 0;
    font-size: 13px;
    color: #e2e8f0;
    white-space: nowrap;
}

#countdown {
    font-weight: 600;
    color: #6eedfc;
    margin-left: 4px;
}

.resend-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #6eedfc;
    color: #0a1520;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.resend-btn:disabled {
    background: rgba(74, 85, 104, 0.6);
    color: #a0aec0;
    cursor: not-allowed;
}

.resend-btn:not(:disabled):hover {
    background: #5dd4e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(111, 238, 252, 0.3);
}

.resend-btn svg {
    transition: transform 0.3s ease;
}

.resend-btn:not(:disabled):hover svg {
    transform: rotate(180deg);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 520px) {
    .resend-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .resend-btn {
        width: 100%;
        justify-content: center;
    }
}
.header-top {
    position: relative;
    padding-bottom: 10px;
}

.header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #ffffff;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-align: center;
}
/* OTP Individual Boxes - Enhanced Beautiful Design */
.otp-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 20px 0;
}

.otp-box {
    width: 65px;
    height: 65px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    border: 2px solid rgba(111, 238, 252, 0.25);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(25, 40, 60, 0.9), rgba(15, 25, 40, 0.9));
    color: #6eedfc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Subtle inner glow effect */
.otp-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(111, 238, 252, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Empty state - subtle pulse */
.otp-box:not(.filled):not(:focus) {
    animation: subtlePulse 2s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { 
        border-color: rgba(111, 238, 252, 0.25);
    }
    50% { 
        border-color: rgba(111, 238, 252, 0.4);
    }
}

/* Focus state - glowing effect */
.otp-box:focus {
    border-color: #6eedfc;
    background: linear-gradient(145deg, rgba(30, 50, 75, 0.95), rgba(20, 35, 55, 0.95));
    box-shadow: 0 0 0 4px rgba(111, 238, 252, 0.15),
                0 8px 16px rgba(111, 238, 252, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.05);
}

.otp-box:focus::before {
    opacity: 1;
}

/* Filled state - success green with glow */
.otp-box.filled {
    border-color: #68d391;
    background: linear-gradient(145deg, rgba(30, 50, 45, 0.95), rgba(20, 40, 35, 0.95));
    color: #68d391;
    box-shadow: 0 4px 12px rgba(104, 211, 145, 0.25),
                inset 0 1px 0 rgba(104, 211, 145, 0.2);
}

/* Filled state glow effect */
.otp-box.filled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(104, 211, 145, 0.3), transparent);
    border-radius: 50%;
    animation: successGlow 0.5s ease-out;
}

@keyframes successGlow {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Error state - shake with red glow */
.otp-box.error {
    border-color: #fc8181;
    background: linear-gradient(145deg, rgba(60, 30, 30, 0.95), rgba(45, 20, 20, 0.95));
    color: #fc8181;
    box-shadow: 0 4px 12px rgba(252, 129, 129, 0.3),
                inset 0 1px 0 rgba(252, 129, 129, 0.2);
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    0%, 100% { 
        transform: translateX(0); 
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-8px); 
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(8px); 
    }
}

/* Hover effect for unfilled boxes */
.otp-box:not(.filled):not(:focus):hover {
    border-color: rgba(111, 238, 252, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Number typing animation */
.otp-box.typing {
    animation: typing 0.2s ease-out;
}

@keyframes typing {
    0% { 
        transform: scale(0.95); 
    }
    50% { 
        transform: scale(1.05); 
    }
    100% { 
        transform: scale(1); 
    }
}

/* Responsive adjustments */
@media (max-width: 520px) {
    .otp-container {
        gap: 12px;
    }
    
    .otp-box {
        width: 55px;
        height: 55px;
        font-size: 22px;
        border-radius: 10px;
    }
}

/* Dark mode enhancement */
@media (prefers-color-scheme: dark) {
    .otp-box {
        background: linear-gradient(145deg, rgba(20, 30, 45, 0.95), rgba(10, 20, 35, 0.95));
    }
}
/* Alert Notice Styling */
.alert-notice {
    background: linear-gradient(135deg, rgba(255, 249, 230, 0.15) 0%, rgba(255, 243, 205, 0.15) 100%);
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-notice span {
    color: #fbbf24;
    font-size: 14px;
    line-height: 1.5;
}

.alert-notice strong {
    color: #fcd34d;
    font-weight: 600;
}

/* Select Dropdown Styling */
select {
    width: 100%;
    padding: 14px;
    background: rgba(20, 35, 55, 0.7);
    border: 1px solid rgba(111, 238, 252, 0.3);
    border-radius: 6px;
    font-size: 16px;
    color: #e2e8f0;
    transition: all 0.3s;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 45px;
}

select:focus {
    border-color: #6eedfc;
    outline: none;
    background-color: rgba(20, 35, 55, 0.9);
    box-shadow: 0 0 0 3px rgba(111, 238, 252, 0.2);
}

select option {
    background: rgba(15, 25, 40, 0.95);
    color: #e2e8f0;
    padding: 12px;
}

/* Select with Icon Wrapper */
.input-icon-wrapper select {
    padding: 12px 45px 12px 45px;
    background-color: rgba(20, 35, 55, 0.7);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.input-icon-wrapper select:focus {
    background-color: rgba(20, 35, 55, 0.9);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236eedfc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Valid state for select */
.input-group.valid select {
    border-color: #68d391;
}

.input-group.invalid select {
    border-color: #fc8181;
    background-color: rgba(252, 129, 129, 0.15);
}

/* Responsive adjustments */
@media (max-width: 520px) {
    .alert-notice {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .alert-notice span {
        font-size: 13px;
    }
}