/* Auth Page Styles */

.auth-section {
    background: white;
    display: flex;
    align-items: center;
}

.auth-container {
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left Side - Banner */
.auth-banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 620px;
    position: relative;
}

.auth-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.auth-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.auth-banner-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 3;
    max-width: 350px;
}

.auth-banner-text p {
    font-size: 36px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    font-family: 'DM Sans', sans-serif;
    margin: 0;
}

/* Right Side - Content */
.auth-content {
    padding-right: 80px;
    position: relative;
}

.auth-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    margin-top: 0;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
}

.options-container {
    margin-top: 40px;
}

.auth-option {
    margin-bottom: 30px;
}

.auth-option-link {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.option-card {
    background: #f5f5f5;
    border: 2px solid #d0d0d0;
    border-radius: var(--border-radius-lg);
    padding: 24px 32px;
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
}

.auth-option-link:hover .option-card {
    border-color: var(--primary-color);
    background: #fafafa;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.option-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    margin-top: 0;
    font-family: 'DM Sans', sans-serif;
}

.option-card p {
    font-size: 14px;
    color: #999;
    margin-bottom: 0;
    margin-top: 0;
    font-family: 'Inter', sans-serif;
}

/* Login Form Styles */
.login-form-container {
    animation: fadeIn 0.3s ease;
    margin-top: 0;
}

/* Sign Up Form Styles */
.signup-form-container {
    animation: fadeIn 0.3s ease;
    margin-top: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    transition: var(--transition);
    position: absolute;
    top: -50px;
    left: 0;
}

.btn-back:hover {
    color: var(--primary-color);
}

.login-form-container h1 {
    display: none;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 62px;
    margin-top: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.login-subtitle a {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid var(--text-color);
    transition: var(--transition);
}

.login-subtitle a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.signup-subtitle {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 32px;
    margin-top: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.signup-subtitle a {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.signup-subtitle a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* OTP Verification Styles */
.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.otp-input.error {
    border-color: #e74c3c;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input[type=number] {
    appearance: textfield;
}

/* Ensure OTP inputs only accept single characters */
.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Inter', sans-serif;
    /* Prevent text selection and ensure single character input */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.verification-header {
    text-align: center;
    margin-bottom: 30px;
}

.verification-header h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    margin-top: 0;
}

.verification-header p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.email-display {
    color: #667eea;
    font-weight: 600;
    word-break: break-all;
}

.timer {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.timer>span {
    display: inline;
}

.resend-text {
    color: #666;
    font-weight: 500;
}

.resend-text .resend-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resend-text .resend-link:hover {
    text-decoration: underline;
    transform: translateY(-1px);
}

#timerText {
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#countdown {
    display: inline-block;
    min-width: 30px;
    padding: 2px 8px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}



.back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.back-link a:hover {
    text-decoration: underline;
}

.verification-form-container {
    animation: fadeIn 0.3s ease;
    margin-top: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auth-banner-wrapper {
        height: 400px;
    }

    .auth-banner-text p {
        font-size: 32px;
    }

    .auth-content h1 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .auth-content {
        padding: 30px;
    }

    .login-form-container h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .signup-form-container h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .btn-back {
        font-size: 13px;
        margin-bottom: 20px;
        gap: 6px;
        top: -14px !important;
        left: 32px;
    }
}

@media (max-width: 768px) {
    .auth-section {
        min-height: auto;
    }

    .auth-container {
        gap: 30px;
    }

    .auth-banner-wrapper {
        height: 300px;
    }

    .auth-banner-text {
        bottom: 30px;
        left: 30px;
        max-width: 280px;
    }

    .auth-banner-text p {
        font-size: 24px;
    }

    .auth-content h1 {
        font-size: 24px;
        margin-bottom: 36px;
    }

    .auth-content {
        padding: 20px;
    }

    .option-card {
        padding: 20px 26px;
        border-radius: var(--border-radius-md);
    }

    .option-card h3 {
        font-size: 16px;
    }

    .option-card p {
        font-size: 13px;
    }

    .login-form-container h1 {
        font-size: 28px;
    }

    .signup-form-container h1 {
        font-size: 28px;
    }

    .btn-back {
        font-size: 13px;
        margin-bottom: 20px;
        gap: 6px;
        top: -14px !important;
        left: 14px;
    }
}

@media (max-width: 480px) {
    .auth-banner-wrapper {
        height: 250px;
    }

    .auth-banner-text {
        bottom: 20px;
        left: 20px;
        max-width: 220px;
    }

    .auth-banner-text p {
        font-size: 18px;
    }

    .auth-content h1 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .auth-content {
        padding: 15px;
    }

    .option-card {
        padding: 16px 20px;
        border-radius: 35px;
    }

    .option-card h3 {
        font-size: 14px;
    }

    .option-card p {
        font-size: 12px;
        margin-bottom: 0;
    }

    .auth-option {
        margin-bottom: 16px;
    }

    .login-form-container h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .signup-form-container h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 28px;
    }

    .signup-subtitle {
        font-size: 13px;
        margin-bottom: 28px;
    }

    .btn-back {
        font-size: 13px;
        margin-bottom: 20px;
        gap: 6px;
        top: -14px !important;
        left: 14px;
    }
}

/* Forgot Password Link */
.forgot-password-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Forgot Password Form */
.forgot-password-form-container {
    margin-top: 20px;
}

.forgot-password-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    text-align: center;
}
/* Auth Link Styles */
.login-link-signup,
.signup-link-login {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.login-link-signup:hover,
.signup-link-login:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Secondary Button Style */
.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: transparent;
    color: var(--text-color);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-secondary-outline i {
    margin-right: 10px;
}
