:root {
    --login-bg: #ffffff;
    --login-text: #1a1a1a;
    --login-muted: #6b7280;
    --login-border: #d1d5db;
    --login-primary: #1877f2;
    --login-primary-hover: #166ada;
    --brand-gradient: linear-gradient(135deg, #1877f2 0%, #4292ff 100%);
    --login-input-bg: #ffffff;
    --login-disabled: #e5e7eb;
    --login-disabled-text: #ffffff;
}

.auth-container {
    background: #f9fafb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--login-bg);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--login-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--login-muted);
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--login-text);
    margin-bottom: 0.5rem;
}

.phone-input-container {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--login-border);
    border-radius: 0.75rem;
    padding: 0 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--login-input-bg);
}

.phone-input-container:focus-within {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem 0.75rem 0;
    border-right: 1.5px solid var(--login-border);
    cursor: pointer;
    user-select: none;
}

.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

.country-code {
    font-weight: 600;
    font-size: 1rem;
    color: var(--login-text);
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    color: var(--login-muted);
}

.phone-field {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--login-text);
    background: transparent;
}

.phone-field:focus {
    outline: none;
}

.btn-continue {
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    background: var(--login-primary);
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue:hover:not(:disabled) {
    background: var(--login-primary-hover);
    transform: translateY(-1px);
}

.btn-continue:disabled {
    background: var(--login-disabled);
    color: #9ca3af;
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
    color: var(--login-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--login-border);
}

.divider span {
    padding: 0 1rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 1.5px solid var(--login-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: var(--login-primary);
    background: #f8fafc;
    transform: translateY(-2px);
}

.social-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Branding Styles */
.brand-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--brand-gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.2);
}

.brand-logo svg {
    width: 40px;
    height: 40px;
    color: white;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.brand-tagline {
    color: var(--login-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* OTP Screen */
#otp-step {
    display: none;
}

.otp-target {
    text-align: center;
    font-weight: 600;
    color: var(--login-primary);
    margin-bottom: 2rem;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.otp-input {
    width: 3.5rem;
    height: 4rem;
    border: 1.5px solid var(--login-border);
    border-radius: 0.75rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--login-text);
    transition: all 0.2s;
}

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

.otp-actions {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--login-muted);
}

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

.change-number {
    color: var(--login-muted);
    cursor: pointer;
    text-decoration: underline;
}

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

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

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}