/* 登录页样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  background: #fbf6ec;
}

.login-container {
  display: flex;
  min-height: 100vh;
}

/* 左侧品牌区 */
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%);
  color: #fff;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -100px;
  right: -100px;
}

.login-left::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -80px;
  left: -80px;
}

.brand {
  text-align: center;
  z-index: 1;
}

.brand h1 {
  font-size: 42px;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.brand p {
  font-size: 18px;
  opacity: 0.8;
  letter-spacing: 2px;
}

.brand-features {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  z-index: 1;
}

/* 登录页品牌区时钟：时分秒黑色大字在上，年月日星期灰色小字在下 */
.brand-clock {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.brand-clock-time {
  font-size: 28px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 2px;
}
.brand-clock-date {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px 24px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  font-size: 16px;
}

.feature-icon {
  font-size: 24px;
}

/* 右侧登录区 */
.login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
  font-size: 26px;
  color: #1f2937;
  margin-bottom: 8px;
}

.login-subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
}

.checkbox input {
  accent-color: #f59e0b;
}

.forgot-link {
  font-size: 14px;
  color: #f59e0b;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-message {
  margin-top: 16px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.login-message.error {
  display: block;
  color: #dc2626;
  background: #fef2f2;
}

/* 分隔线 */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #9ca3af;
  font-size: 13px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.divider span {
  padding: 0 12px;
}

/* 飞书登录按钮 */
.feishu-login-btn {
  width: 100%;
  height: 46px;
  background: #fff;
  border: 1px solid #3370ff;
  border-radius: 8px;
  color: #3370ff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.feishu-login-btn:hover {
  background: #f0f4ff;
}
.feishu-icon {
  font-size: 18px;
}

/* 响应式 */
@media (max-width: 768px) {
  .login-left {
    display: none;
  }
}
