/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: linear-gradient(135deg, var(--surface-color) 0%, #EFEDE6 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.login-logo-img {
    height: 40px;
    width: auto;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.login-button-container {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.login-legal {
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.login-legal a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.login-legal a:hover {
    color: var(--primary-color);
}

.login-error {
    margin-top: 16px;
    padding: 12px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #991b1b;
    font-size: 14px;
}

.login-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Login method tabs */
.login-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.login-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.login-tab:hover {
    color: var(--text-primary);
}

.login-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.login-tab-content {
    display: none;
    min-height: 80px;
}

.login-tab-content.active {
    display: block;
}

/* OTP form styles */
.otp-form {
    text-align: left;
}

.otp-input-group {
    margin-bottom: 16px;
}

.otp-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.otp-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 78, 58, 0.1);
}

.otp-submit-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.otp-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.otp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.otp-status {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
}

.otp-status.success {
    color: #16a34a;
}

.otp-status.error {
    color: #dc2626;
}

.otp-back-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

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

.otp-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.otp-code-input {
    letter-spacing: 8px;
    font-size: 20px;
    text-align: center;
    font-family: monospace;
}

