/* 物通613 网页版登录样式（独立 Web 项目） */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #fdf6e3 0%, #f5e6c8 50%, #fdf3e3 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.login-container { width: 100%; max-width: 440px; }

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 36px 32px;
}

.brand { text-align: center; margin-bottom: 24px; }
.brand-logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #ff8c00, #ffb347);
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(255,140,0,0.3);
}
.brand h1 { font-size: 26px; color: #333; letter-spacing: 2px; }
.brand-sub { font-size: 13px; color: #999; margin-top: 6px; }

.role-tabs, .mode-tabs {
  display: flex; background: #f5f5f5; border-radius: 8px; padding: 4px; margin-bottom: 12px;
}
.role-tab, .mode-tab {
  flex: 1; padding: 10px; border: none; background: transparent;
  font-size: 14px; color: #666; cursor: pointer; border-radius: 6px;
  transition: all 0.2s;
}
.role-tab.active, .mode-tab.active {
  background: #ff8c00; color: #fff; font-weight: 600;
  box-shadow: 0 2px 6px rgba(255,140,0,0.3);
}
.mode-tabs { margin-bottom: 20px; }
.mode-tab.active { background: #2b5f8a; box-shadow: 0 2px 6px rgba(43,95,138,0.3); }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.field {
  position: relative; display: flex; align-items: center;
  background: #fafafa; border: 1px solid #e8e8e8; border-radius: 8px;
  transition: border-color 0.2s;
}
.field:focus-within { border-color: #ff8c00; }
.field-icon { padding: 0 12px; font-size: 16px; }
.field input {
  flex: 1; padding: 12px 12px 12px 0; border: none; background: transparent;
  font-size: 14px; outline: none; color: #333;
}
.captcha-field input { flex: 1; }
.captcha-right { display: flex; flex-direction: column; align-items: center; margin: 4px 8px 4px 4px; }
.captcha-img { width: 120px; height: 42px; border-radius: 6px; cursor: pointer; object-fit: contain; background: #eee; }
.captcha-refresh { font-size: 11px; color: #2b5f8a; cursor: pointer; margin-top: 2px; user-select: none; }
.captcha-refresh:hover { text-decoration: underline; }
.sms-field input { flex: 1; }
.btn-send {
  padding: 8px 12px; margin-right: 6px; border: none; background: #2b5f8a;
  color: #fff; border-radius: 6px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.btn-send:disabled { background: #ccc; cursor: not-allowed; }

.btn-primary {
  padding: 14px; border: none; background: linear-gradient(135deg, #ff8c00, #ff9f2e);
  color: #fff; font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer;
  letter-spacing: 4px; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.hidden { display: none; }

.qrcode-section { margin-top: 20px; }
.divider { text-align: center; position: relative; margin: 12px 0; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e8e8e8; }
.divider span { background: #fff; padding: 0 12px; position: relative; color: #999; font-size: 12px; }
.qrcode-box { text-align: center; }
.qrcode-img {
  width: 160px; height: 160px; margin: 12px auto; border: 1px dashed #ddd;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: #fafafa;
}
.qrcode-img img { width: 150px; height: 150px; border-radius: 4px; }
.btn-qr {
  padding: 10px 20px; border: 1px solid #ff8c00; background: #fff; color: #ff8c00;
  border-radius: 6px; cursor: pointer; font-size: 13px;
}
.qrcode-hint { font-size: 12px; color: #999; }
.qrcode-status { font-size: 13px; color: #2b5f8a; margin-top: 6px; min-height: 18px; }

.login-error { color: #e53935; font-size: 13px; text-align: center; margin-top: 12px; min-height: 18px; }
.register-link { text-align: center; font-size: 13px; color: #666; margin-top: 8px; }
.register-link a { color: #ff8c00; text-decoration: none; }