.login-page {
  width: 100%;
  min-height: 100vh;
  background: var(--page-bg);
}

.login-header {
  background: #fff;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  font-size: 20px !important;
  padding: 8px !important;
  margin-right: 12px;
}

.login-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex: 1;
  text-align: center;
  margin-right: 44px;
}

.login-form-container {
  padding: 40px 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.login-card,
.register-card {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.login-card .ant-card-body {
  padding: 32px 24px;
  width: 100%;
}

.login-card .ant-form {
  width: 100%;
}

.login-card .ant-form-item {
  width: 100%;
}

.login-card .ant-input,
.login-card .ant-input-password {
  width: 100%;
}

.register-card .ant-card-body {
  padding: 24px;
  text-align: center;
}

.register-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.login-btn {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  background: var(--brand-gradient) !important;
  border: none !important;
  color: var(--text-on-brand) !important;
}

.login-btn:hover,
.login-btn:focus {
  background: var(--brand-gradient-hover) !important;
  color: var(--text-on-brand) !important;
}

.register-btn {
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border-color: var(--brand-color) !important;
  color: var(--brand-color) !important;
  background: var(--surface-bg) !important;
}

.register-btn:hover,
.register-btn:focus {
  border-color: var(--brand-color-dark) !important;
  color: var(--brand-color-dark) !important;
  background: var(--brand-color-light) !important;
}

/* 移动端适配 */
@media screen and (max-width: 375px) {
  .login-form-container {
    padding: 32px 16px;
  }

  .login-card .ant-card-body {
    padding: 24px 20px;
  }
}

@media screen and (min-width: 768px) {
  .login-form-container {
    padding: 60px 40px;
  }

  .login-card .ant-card-body {
    padding: 40px 32px;
  }
}
