/* ═══════════════════════════════════════
   登录页样式 - Apple iPhone 风格
═══════════════════════════════════════ */

body.login-page {
  overflow: auto;
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  font-family: var(--font);
  color: var(--text);
  padding: 40px 20px;
}

/* 背景光效 */
body.login-page::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.15) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

body.login-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center, rgba(52, 199, 89, 0.1) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.login-logo,
.login-card,
.login-footer {
  position: relative;
  z-index: 10;
}

.login-card {
  width: 440px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  text-align: center;
}

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

.login-header .logo-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.login-header h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  margin: 0;
}

.form-group {
  margin-bottom: 16px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 16px;
  font-size: 17px;
  color: #1d1d1f;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-wrap .input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.input-wrap .input::placeholder {
  color: #86868b;
}

.toggle-pw {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #86868b;
  font-size: 16px;
  padding: 4px;
}


.checkbox-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--text);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.forgot-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--dur-fast);
}

.forgot-link:hover {
  opacity: .7;
}

.btn-login {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 17px;
  border-radius: var(--r-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--text);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all var(--dur-fast);
}

.btn-login:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: #333;
}

.login-error {
  display: none;
  background: rgba(255, 59, 48, .1);
  border: 1px solid rgba(255, 59, 48, .3);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--destructive);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn var(--dur-base);
}

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

.login-demo-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  line-height: 1.6;
}

.login-demo-hint b {
  color: var(--text-secondary);
  font-weight: 600;
}

.login-footer {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  animation: fadeIn 1s ease-out 0.8s both;
}

.login-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.login-footer a:hover {
  color: var(--text);
}