body {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(25, 118, 210, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(25, 118, 210, 0.2));
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 20px 0;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: white;
    color: #1976d2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-content.hidden {
    display: none;
}

.tab-description {
    color: #64748b;
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

.pat-help {
    text-align: center;
    margin-top: 16px;
}

.pat-help a {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
}

.auth-btn.google {
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.auth-btn.google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.auth-btn.primary {
    background: #1976d2;
    color: white;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.auth-btn.primary:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.3);
}

.divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 0;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

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

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.input-group input, .login-select {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    appearance: none;
}

.input-group input:focus, .login-select:focus {
    border-color: #1976d2;
    background: white;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.auth-footer a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

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

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #64748b;
}

.auth-switch a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 24px;
}

.back-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #1976d2;
}

/* Loading Overlay */
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}
