/* Global Styles */
:root {
    --primary-color: #1A73E8;
    --secondary-color: #FFC107;
    --accent-color: #4CAF50;
    --neutral-color: #F5F5F5;
    --dark-text: #333333;
    --light-text: #666666;
    --error-color: #f44336;
    --success-color: #4CAF50;
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--neutral-color);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    position: relative;
}

/* Header Section */
.login-header {
    text-align: center;
    padding: 30px 20px 20px;
}

.logo {
    max-width: 180px;
    margin-bottom: 15px;
}

.login-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.login-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 20px;
}

/* Form Styles */
.login-form {
    padding: 0 30px 30px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

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

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    background-color: #1565C0;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

/* Error Message */
.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

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

/* OTP Verification Section */
.otp-container {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-right: 8px;
}

.otp-input:last-child {
    margin-right: 0;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

.resend-container {
    text-align: center;
    margin-top: 20px;
}

.resend-text {
    font-size: 14px;
    color: var(--light-text);
}

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

.resend-link:hover {
    text-decoration: underline;
}

.countdown {
    font-weight: 500;
    color: var(--primary-color);
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

.loading .spinner {
    display: inline-block;
}

/* Success Animation */
.success-checkmark {
    display: none;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.success-checkmark.show {
    display: block;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success-color);
}

.check-icon::before {
    top: 43px;
    left: 19px;
    transform: rotate(45deg);
    width: 20px;
    height: 3px;
}

.check-icon::after {
    top: 38px;
    left: 26px;
    transform: rotate(135deg);
    width: 38px;
    height: 3px;
}

.check-icon::before,
.check-icon::after {
    content: '';
    position: absolute;
    background-color: var(--success-color);
    border-radius: 2px;
}

/* Media Queries */
@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form {
        padding: 0 20px 20px;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Tagline */
.tagline {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: var(--light-text);
    font-family: 'Inter', sans-serif;
}