/* ========== 认证页面样式 ========== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: #121212;
  color: #c9c9c9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.auth-box {
  background: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 2px;
  display: inline-flex;
}

.logo-could {
  color: #ffffff;
}

.logo-inject {
  color: #e84a7f;
}

.auth-header h1 {
  font-size: 24px;
  color: #fff;
  margin-top: 24px;
  margin-bottom: 8px;
}

.auth-header p {
  color: #666;
  font-size: 14px;
}

/* 错误消息 */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.error-message i {
  margin-right: 8px;
}

/* 表单 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  color: #888;
}

.form-group label i {
  margin-right: 6px;
  color: #666;
}

.form-group input {
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #e84a7f;
}

.form-group input::placeholder {
  color: #555;
}

/* 表单选项 */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  cursor: pointer;
}

.remember-me input {
  accent-color: #e84a7f;
}

.forgot-link {
  color: #e84a7f;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* 提交按钮 */
.btn-submit {
  background: #e84a7f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: #d43d6f;
}

.btn-submit i {
  margin-right: 8px;
}

/* 底部 */
.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.auth-footer a {
  color: #e84a7f;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.invite-note {
  margin-top: 12px;
  font-size: 12px;
  color: #555;
}
/* 成功消息 */
.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.success-message i {
  margin-right: 8px;
}

.success-message a {
  color: #10b981;
  margin-left: 8px;
}

.required {
  color: #e84a7f;
}
/* ========== 注册页面新增样式 ========== */

/* 邀请人信息 */
.inviter-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(232, 74, 127, 0.1);
  border: 1px solid rgba(232, 74, 127, 0.2);
  border-radius: 10px;
  margin-bottom: 24px;
}

.inviter-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e84a7f;
}

.inviter-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inviter-label {
  font-size: 12px;
  color: #888;
}

.inviter-name {
  font-size: 16px;
  font-weight: 600;
}

/* 输入框带图标 */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  flex: 1;
  padding-right: 40px;
}

.input-status {
  position: absolute;
  right: 14px;
  font-size: 14px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
}

.toggle-password:hover {
  color: #888;
}

/* 表单提示 */
.form-hint {
  font-size: 11px;
  color: #666;
  margin-top: 6px;
  transition: color 0.2s;
}

/* 密码强度 */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #ef4444;
  border-radius: 2px;
  transition: all 0.3s;
}

.strength-text {
  font-size: 11px;
  color: #666;
  min-width: 50px;
}

/* 复选框 */
.checkbox-group {
  margin: 20px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
}

.checkbox-label input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #444;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
  background: #e84a7f;
  border-color: #e84a7f;
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  color: #888;
  line-height: 1.4;
}

.checkbox-text a {
  color: #e84a7f;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

/* 底部注意事项 */
.auth-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #2d2d2d;
  text-align: center;
  font-size: 12px;
  color: #555;
}

.auth-note i {
  margin-right: 6px;
  color: #e84a7f;
}

/* 成功消息中的按钮 */
.success-message .btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #10b981;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.success-message .btn-login:hover {
  background: #059669;
}

/* 必填标记 */
.required {
  color: #e84a7f;
}
/* 密码输入框容器 */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  flex: 1;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  font-size: 14px;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #e84a7f;
}

/* 记住我复选框样式 */
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #888;
}

.remember-me input {
  display: none;
}

.remember-me .checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid #444;
  border-radius: 3px;
  position: relative;
  transition: all 0.2s;
}

.remember-me input:checked + .checkmark {
  background: #e84a7f;
  border-color: #e84a7f;
}

.remember-me input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ========== 移动端适配 ========== */
@media (max-width: 480px) {
  body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  .auth-container {
    padding: 16px;
  }

  .auth-box {
    padding: 24px 20px;
  }

  .logo {
    font-size: 20px;
  }

  .auth-header h1 {
    font-size: 20px;
  }

  .form-group input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .btn-submit {
    padding: 12px;
    font-size: 14px;
  }
}
