:root {
    --primary-color: #fea327;
    --primary-dark: #fea327;
    --secondary-color: #febe66;
    --text-color: #111827;
    --light-text: #6b7280;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --error-color: #ef4444;
    --success-color: #10b981;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left img {
    position: absolute;
    top: 15px;
    left: 15px;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--secondary-color));
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-circle i {
    font-size: 2rem;
    color: var(--white);
}

.logo-container h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
    margin-bottom: 2rem;
}

.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 420px;
    z-index: 2;
    position: absolute;
}

.login-header {
    margin-bottom: 2rem;
}

.login-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--light-text);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.input-with-icon {
    position: relative;
}

.input-with-icon img {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 0.9rem;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 15px 14px 50px;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    min-height: 46px;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.login-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.login-button i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.verify-button {
    margin-top: 2rem;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.otp-header {
    text-align: center;
    margin-bottom: 2rem;
}

.otp-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.otp-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.otp-header p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.otp-header p span {
    font-weight: 500;
    color: var(--text-color);
}

.otp-input-container {
    margin: 2rem 0;
}

.otp-input-fields {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.otp-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #cfd1d4;
    border-radius: 8px;
    transition: var(--transition);
}

.otp-digit:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.otp-footer {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

.otp-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--light-text);
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Add these styles to your login.css */
.resend-timer {
    margin-left: 5px;
    color: #999;
    font-size: 0.9em;
}

#resendOtp.loading {
    pointer-events: none;
    opacity: 0.7;
}

#resendOtp:disabled {
    color: #999;
    cursor: not-allowed;
}

.border-0 {
    border: 0px !important;
}

.bg-transparent {
    background-color: transparent !important;
}

.resend-button {
    cursor: pointer;
    color: var(--primary-color);
}

.resend-button:active,
.resend-button:hover {
    border: 0 !important;
}

.back-btn {
    position: absolute;
    top: 20px;
    color: var(--primary-color);
    border: 0px;
    background-color: transparent;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.back-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 2rem 1rem;
        flex: 0;
        min-height: 350px;
    }

    .login-right {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .otp-input-fields {
        gap: 5px;
    }

    .otp-digit {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
}