@charset "UTF-8";
/* BasinLens Auth Pages Styles v3.1.0 */

/* =========================================
   1. Layout & Container
   ========================================= */

.auth-body {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%); /* from-orange-50 to-white */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.auth-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  width: 100%;
}

.auth-grid {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 4rem;
  align-items: center; /* 垂直居中对齐 */
  justify-content: center;
}

/* =========================================
   2. Marketing Panel (Left Side)
   ========================================= */

.auth-marketing {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #1f2937; /* text-gray-800 */
}

.marketing-title {
  font-size: 2.75rem; /* text-5xl */
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #111827; /* text-gray-900 */
}

.marketing-title .highlight {
  background: linear-gradient(to right, #fb923c, #ea580c); /* from-orange-400 to-orange-600 */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.marketing-subtitle {
  font-size: 1.25rem; /* text-xl */
  color: #374151; /* text-gray-700 */
  line-height: 1.75;
  max-width: 32rem;
}

/* =========================================
   3. Auth Card (Right Side)
   ========================================= */

.auth-card {
  width: 480px; /* 固定宽度 */
  height: 660px; /* 固定高度 */
  flex-shrink: 0; /* 防止被压扁 */
  background-color: #ffffff;
  border-radius: 1rem; /* rounded-2xl */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  /* 内容垂直分布逻辑：标题和Tab靠上，表单居中(如果内容少)或自然排列 */
  position: relative;
}

.card-title {
  color: #1f2937; /* text-gray-800 */
  text-align: left;
  font-size: 1.5rem; /* text-2xl */
  font-weight: 500;
  letter-spacing: .03rem;
  margin-bottom: 1.5rem;
}

/* =========================================
   4. Tabs
   ========================================= */

.auth-tabs {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.tab {
  padding: 0.5rem 0;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px; /* 让 border 盖住底线 */
}

.tab + .tab {
  margin-left: 2rem;
}

.tab.active {
  color: #2563eb; /* text-blue-600 */
  border-bottom-color: #2563eb;
}

.tab:hover:not(.active) {
  color: #374151;
}

/* =========================================
   5. Form Elements
   ========================================= */

.auth-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1; /* 让表单占据剩余空间，方便内容布局 */
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.25rem;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: #374151; /* text-gray-700 */
  font-size: 0.875rem; /* text-sm */
}

.form-input {
  padding: 0.625rem 0.75rem; /* p-2.5 */
  border: 1px solid #d1d5db; /* border-gray-300 */
  border-radius: 0.375rem; /* rounded-md */
  font-size: 0.875rem;
  width: 100%;
  box-sizing: border-box; /* 确保 padding 不增加宽度 */
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 300;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6; /* blue-500 */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); /* light blue ring */
}

.form-input.is-invalid {
  border-color: #ef4444; /* red-500 */
}

.form-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); /* light red ring */
}

.error-message {
  color: #ef4444; /* text-red-500 */
  font-size: 0.75rem; /* text-xs */
  margin-top: 0.25rem;
  min-height: 1.25rem; /* 预留高度防止跳动 */
}

/* =========================================
   6. Buttons
   ========================================= */

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 0.75rem;
  color: white;
  background-color: #f97316; /* bg-orange-500 */
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.btn-submit:hover:not(:disabled) {
  background-color: #ea580c; /* hover:bg-orange-600 */
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
  background-color: #c2410c; /* active:bg-orange-700 */
}

.btn-submit:disabled {
  background-color: #fdba74; /* bg-orange-300 */
  cursor: not-allowed;
  opacity: 0.8;
}

/* Verify OTP Button */
.verify-otp-wrapper {
  display: flex;
  gap: 0.75rem;
}

.btn-verify {
  width: 108px;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: #2563eb; /* text-blue-600 */
  background: white;
  border: 1px solid #2563eb;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-verify:hover:not(:disabled) {
  background: #eff6ff; /* bg-blue-50 */
}

.btn-verify:disabled {
  color: #9ca3af;
  border-color: #d1d5db;
  background: #f9fafb;
  cursor: not-allowed;
}

/* =========================================
   7. Footer & Links
   ========================================= */

.auth-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.auth-footer a {
  color: #3b82f6;
  text-decoration: none;
}

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

/* =========================================
   8. Utilities
   ========================================= */

.hidden {
  display: none !important;
}

.text-xs { font-size: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.text-gray-600 { color: #4b5563; }
.text-blue-500 { color: #3b82f6; }
.hover\:underline:hover { text-decoration: underline; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.space-x-8 > * + * { margin-left: 2rem; }

/* =========================================
   9. Responsive Design
   ========================================= */

/* 平板和小桌面优化 */
@media (max-width: 1024px) {
  .marketing-title { font-size: 2.25rem; }
  .auth-grid { gap: 2rem; }
}

/* 移动端和窄屏优化：隐藏营销面板，表单居中 */
@media (max-width: 900px) {
  .auth-marketing {
    display: none;
  }

  .auth-main {
    padding: 1rem;
  }

  .auth-grid {
    justify-content: center;
  }

  .auth-card {
    width: 100%;
    max-width: 480px;
    height: auto; /* 移动端取消固定高度，防止溢出屏幕 */
    min-height: 600px; /* 保持一定的最小高度感 */
    padding: 2rem;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .auth-card {
    box-shadow: none; /* 移除阴影，看起来像原生应用页面 */
    border: none;
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .auth-body {
    background: #ffffff; /* 纯白背景 */
  }
}
