/* ==================== 登录/注册页面样式 (V15-auth) ==================== */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 50%, #FFD9B3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 30px 24px;
}

/* Logo 区域 */
.auth-logo-section {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  font-size: 56px;
  margin-bottom: 8px;
  animation: authLogoPulse 2s ease-in-out infinite;
}

@keyframes authLogoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.auth-brand-name {
  font-size: 26px;
  font-weight: 700;
  color: #FF8C42;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.auth-brand-slogan {
  font-size: 13px;
  color: #CC7733;
  opacity: 0.8;
}

/* Tab 切换 */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-tab.active {
  background: #FF8C42;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}

/* 表单区域 */
.auth-form {
  animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 登录方式切换 */
.auth-method-switch {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.auth-method {
  font-size: 13px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.auth-method.active {
  color: #FF8C42;
  border-bottom-color: #FF8C42;
  font-weight: 600;
}

/* 输入字段 */
.auth-fields {
  margin-bottom: 8px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1.5px solid #E8D5C0;
  border-radius: 12px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-field input:focus {
  border-color: #FF8C42;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
}

.auth-field input::placeholder {
  color: #CCBBAA;
}

/* 验证码行 */
.auth-code-row {
  display: flex;
  gap: 10px;
}

.auth-code-row input {
  flex: 1;
}

.auth-send-code-btn {
  white-space: nowrap;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FF8C42, #FF6B35);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  min-width: 100px;
}

.auth-send-code-btn:hover {
  opacity: 0.9;
}

.auth-send-code-btn:disabled {
  background: #D4C4B0;
  cursor: not-allowed;
  opacity: 0.8;
}

/* 提交按钮 */
.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF8C42, #FF6B35);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.35);
  margin-top: 8px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* 额外链接 */
.auth-extra-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
}

.auth-extra-links a {
  color: #FF8C42;
  text-decoration: none;
}

.auth-extra-links a:hover {
  text-decoration: underline;
}

/* 用户协议 */
.auth-agreement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #999;
  margin: 12px 0;
  line-height: 1.6;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FF8C42;
  margin: 0;
}

.auth-link {
  color: #FF8C42 !important;
  text-decoration: none !important;
}

.auth-link:hover {
  text-decoration: underline !important;
}

/* 返回链接 */
.auth-back-link {
  margin-bottom: 16px;
}

.auth-back-link a {
  color: #FF8C42;
  font-size: 14px;
  text-decoration: none;
}

/* 跳过登录 */
.auth-skip {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
}

.auth-skip a {
  color: #BBAA99;
  text-decoration: none;
}

.auth-skip a:hover {
  color: #FF8C42;
}

/* Toast 提示 */
.auth-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 10000;
  pointer-events: none;
  animation: authToastIn 0.3s ease, authToastOut 0.3s ease 1.7s forwards;
}

@keyframes authToastIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes authToastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 儿童模式适配 */
[data-mode="child"] .auth-container {
  max-width: 440px;
}

[data-mode="child"] .auth-field input {
  font-size: 17px;
  padding: 14px 16px;
}

[data-mode="child"] .auth-submit-btn {
  font-size: 19px;
  padding: 16px;
}

[data-mode="child"] .auth-tab {
  font-size: 17px;
  padding: 12px 0;
}

/* 老人模式适配 */
[data-mode="elder"] .auth-container {
  max-width: 460px;
}

[data-mode="elder"] .auth-field input {
  font-size: 19px;
  padding: 15px 16px;
}

[data-mode="elder"] .auth-submit-btn {
  font-size: 21px;
  padding: 17px;
}

[data-mode="elder"] .auth-tab {
  font-size: 19px;
  padding: 13px 0;
}

[data-mode="elder"] .auth-method {
  font-size: 15px;
}

[data-mode="elder"] .auth-field label {
  font-size: 15px;
}

[data-mode="elder"] .auth-agreement {
  font-size: 14px;
}

/* 隐藏登录页的全局footer */
.auth-page .app-footer,
.auth-page footer { display: none !important; }

.auth-page .status-bar { display: none !important; }
