body { font-family: 'Inter', system-ui, sans-serif; }

body.auth-page-body {
  background: #f3ead8;
  min-height: 100vh;
  margin: 0;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 2.75rem;
  border-radius: 0.5rem;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  color: #1f2937;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  outline: none;
  box-sizing: border-box;
}
.auth-input:focus {
  background: #fff;
  border-color: #fec72f;
  box-shadow: 0 0 0 3px rgba(254, 199, 47, 0.2);
}
.auth-input::placeholder { color: #9ca3af; }

.hive-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='60'%3E%3Cpath d='M26 0L52 15v30L26 60 0 45V15z' fill='none' stroke='rgba(255,255,255,0.13)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 52px 60px;
}

.btn-brand {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #fec72f;
  color: #1a1200;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: 0.01em;
}
.btn-brand:hover { background: #FFB300; box-shadow: 0 4px 14px rgba(254,199,47,0.45); }

/* Password strength bar (reset2 page) */
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  overflow: hidden;
  margin-top: 0.5rem;
}
.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
}

.auth-brand-panel {
  display: none;
  background: linear-gradient(145deg, #fec72f 0%, #f59e0b 45%, #d97706 100%);
  flex: 0 0 42%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand-glow,
.auth-brand-glow-sm {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand-glow {
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.08);
  top: -80px;
  left: -80px;
}

.auth-brand-glow-sm {
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.06);
  bottom: -60px;
  right: -60px;
}

.auth-brand-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 3rem;
}

.auth-brand-logo-box {
  width: 88px;
  height: 88px;
  background: none;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.auth-brand-logo-box.auth-brand-logo-box-round {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: none;
}

.auth-brand-logo-image {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.auth-brand-icon {
  font-size: 2.8rem;
  color: #fff;
}

.auth-brand-title {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.auth-brand-title-md {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.auth-brand-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 3rem;
}

.auth-brand-copy-md {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.auth-brand-copy-tight {
  margin-bottom: 0;
}

.auth-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 280px;
  margin: 0 auto;
}

.auth-brand-tile {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.auth-brand-tile-icon {
  font-size: 1.8rem;
  color: #fff;
  display: block;
  margin-bottom: 0.35rem;
}

.auth-brand-tile-label {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-brand-card {
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.auth-brand-steps,
.auth-brand-tips {
  display: flex;
  flex-direction: column;
}

.auth-brand-steps {
  gap: 0.85rem;
}

.auth-brand-tips {
  gap: 0.5rem;
}

.auth-brand-step,
.auth-brand-tip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-brand-tip {
  gap: 0.5rem;
}

.auth-brand-step-icon-wrap {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-brand-step-icon {
  color: #fff;
  font-size: 1.1rem;
}

.auth-brand-step-text {
  color: #fff;
  font-size: 0.82rem;
  margin: 0;
}

.auth-brand-tips-title {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-brand-tip-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.auth-brand-tip-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  margin: 0;
}

.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: #f3ead8;
  overflow-y: auto;
}

.auth-mobile-logo {
  margin-bottom: 2rem;
  text-align: center;
  display: none;
}

.auth-mobile-logo.auth-mobile-logo-sm {
  margin-bottom: 1.75rem;
}

.auth-mobile-logo-image {
  height: 48px;
  object-fit: contain;
}

.auth-mobile-tagline {
  color: #6b7280;
  font-size: 0.78rem;
  margin: 0.4rem 0 0;
  font-weight: 500;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 36px rgba(139, 90, 0, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(254, 199, 47, 0.18);
}

.auth-form-wrap.auth-form-wrap-wide {
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-header.auth-form-header-sm {
  margin-bottom: 1.75rem;
}

.auth-form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.3rem;
}

.auth-form-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.auth-form-subtitle.auth-form-subtitle-relaxed {
  line-height: 1.6;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.auth-alert-icon {
  font-size: 1.1rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form.auth-form-tight {
  gap: 0.9rem;
}

.auth-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

.auth-field-control {
  position: relative;
}

.auth-field-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.15rem;
}

.auth-field-icon.auth-field-icon-sm {
  font-size: 1.1rem;
}

.auth-toggle-password {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  line-height: 1;
}

.auth-toggle-password-icon {
  font-size: 1.15rem;
}

.auth-toggle-password-icon.auth-toggle-password-icon-sm {
  font-size: 1.1rem;
}

.auth-text-muted {
  color: #6b7280;
}

.auth-text-caption {
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 0.4rem 0 0;
}

.auth-text-caption-tight {
  margin-top: 0.3rem;
}

.auth-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.auth-link-inline {
  font-size: 0.78rem;
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.25rem 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: #f3f4f6;
}

.auth-divider-text {
  font-size: 0.72rem;
  color: #9ca3af;
  white-space: nowrap;
}

.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s ease;
}

.auth-oauth-btn:hover {
  background: #f9fafb;
}

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

.auth-footer-copy.auth-footer-copy-sm {
  margin-top: 1.75rem;
}

.auth-cta-link {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

.auth-back-link:hover {
  color: #d97706;
}

.auth-back-icon {
  font-size: 1rem;
}

.auth-action-space {
  margin-top: 0.25rem;
}

.auth-input-token {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 1.1rem;
  font-weight: 600;
}

.auth-panel-logo-box {
  width: 88px;
  height: 88px;
  background: #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.auth-visible-flex {
  display: flex;
}

.auth-visible-block {
  display: block;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .auth-grid-two {
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    padding: 2rem 1.25rem;
  }
}
