/* Apple Store 风格登录页面 */
:root {
    --apple-bg: #f5f5f7;
    --apple-card: #ffffff;
    --apple-text-primary: #1d1d1f;
    --apple-text-secondary: #86868b;
    --apple-link: #0071e3;
    --apple-border: #d2d2d7;
    --apple-shadow: rgba(0, 0, 0, 0.04);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    background-color: var(--apple-bg);
    color: var(--apple-text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Utility Classes for Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.max-w-md { max-width: 440px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.mb-10 { margin-bottom: 40px; }
.mb-6 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 8px; }
.mt-2 { margin-top: 8px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.pt-6 { padding-top: 24px; }
.gap-4 { gap: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-xl { border-radius: 12px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }
.text-center { text-align: center; }
.block { display: block; }
.hidden { display: none; }
.border-t { border-top: 1px solid var(--apple-border); }

.admin-login-container, body.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 移除之前的深色背景渐变 */
.admin-login-container::before {
    display: none;
}

/* Apple Logo / Branding */
.login-logo, .text-center.mb-10 {
    margin-bottom: 40px;
    text-align: center;
}

.login-logo h1, .text-3xl.font-semibold {
    font-size: 40px;
    font-weight: 600;
    color: var(--apple-text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.003em;
}

.login-logo p, .text-gray-400.mt-2 {
    font-size: 17px;
    color: var(--apple-text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Card Style */
.login-card-apple, .card-glass {
    width: 100%;
    max-width: 460px;
    background: var(--apple-card);
    border-radius: 18px;
    padding: 48px;
    box-shadow: 0 4px 24px var(--apple-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

/* Inputs */
.login-form-group label, .block.text-sm {
    display: block;
    font-size: 17px;
    font-weight: 400;
    color: var(--apple-text-primary);
    margin-bottom: 8px;
}

.login-input-wrapper input, .input-apple {
    width: 100%;
    padding: 16px 16px;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    color: var(--apple-text-primary);
    background-color: #fff;
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-input-wrapper input:focus, .input-apple:focus {
    border-color: var(--apple-link);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.input-icon { display: none; }
.login-input-wrapper input { padding-left: 16px; }

/* Button */
.login-btn-apple, .btn-primary {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    background-color: var(--apple-link);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 32px;
}

.login-btn-apple:hover, .btn-primary:hover {
    background-color: #0077ed;
}

.login-btn-apple:active, .btn-primary:active {
    transform: scale(0.98);
}

/* Links */
.login-footer, .text-center.mt-8 {
    margin-top: 32px;
    text-align: center;
    border-top: none;
    padding-top: 0;
}

.login-footer p, .text-gray-500, .text-gray-600 {
    font-size: 14px;
    color: var(--apple-text-secondary);
    margin-bottom: 8px;
}

.login-footer a, .link-apple {
    color: var(--apple-link);
    text-decoration: none;
    font-size: 14px;
}

.login-footer a:hover, .link-apple:hover {
    text-decoration: underline;
}

/* Verification Code */
.login-verifycode {
    display: flex;
    gap: 12px;
}
.login-verifycode input {
    flex: 1;
}
.login-verifycode img {
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--apple-border);
    cursor: pointer;
}

/* Toggle Switch (for User Login) */
.flex.mb-6.bg-gray-900\/50 {
    background-color: #e5e5ea !important;
    padding: 4px;
    border-radius: 14px;
}

#tab-password, #tab-key {
    border-radius: 10px;
    color: var(--apple-text-secondary);
    background: transparent;
    font-weight: 400;
    box-shadow: none;
}

/* Active tab style */
button.bg-white\/10.text-white {
    background-color: #fff !important;
    color: var(--apple-text-primary) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card-apple, .card-glass {
        padding: 32px 24px;
        box-shadow: none;
        background: transparent;
        border: none;
    }
    
    .login-logo h1 {
        font-size: 32px;
    }
}
