/* ── Design tokens (duplicated from styles.css for standalone login page) ── */
:root {
  --gold:         #F2C04A;
  --gold-light:   #FDF3D0;
  --gold-mid:     #F5D87A;
  --terra:        #C4503A;
  --terra-light:  #FAEAE7;
  --terra-dark:   #9E3D2C;
  --green:        #2E7D5E;
  --green-light:  #E4F2EC;
  --earth:        #8B6A3A;
  --earth-light:  #F5EFE4;
  --ink:          #1A1A1A;
  --bg:           #F7F5F0;
  --bg-warm:      #F0EBE1;
  --surface:      #FFFFFF;
  --border:       #E0D8CC;
  --text:         #2A2018;
  --text-muted:   #7A6A55;

  --radius:       10px;
  --radius-sm:    6px;
  --shadow-card:  0 4px 24px rgba(26,20,9,0.10), 0 1px 4px rgba(26,20,9,0.06);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Layout ── */
.login-body {
  min-height: 100vh;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Left panel ── */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--surface);
}

.login-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Brand ── */
.login-brand {
  display: flex;
  align-items: center;
}

.login-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ── Header ── */
.login-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Error ── */
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--terra-light);
  border: 1px solid #E8A090;
  border-radius: var(--radius-sm);
  color: var(--terra-dark);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Form ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-input:focus {
  border-color: var(--terra);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(196, 80, 58, 0.12);
}

/* ── Submit button ── */
.login-btn {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--terra);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.login-btn:hover {
  background: var(--terra-dark);
}

.login-btn:active {
  transform: scale(0.98);
}

/* ── Google button ── */
.login-btn--google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}
.login-btn--google:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
}
.login-domain-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Footer ── */
.login-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ── Right panel: image ── */
.login-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-color: #1F2D1A;
  background-image: url('/static/img/cherry_orchard.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.login-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 25, 10, 0.25) 0%,
    rgba(15, 25, 10, 0.55) 100%
  );
}

.login-image-caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  color: #fff;
  z-index: 1;
}

.caption-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1.5px solid rgba(242, 192, 74, 0.75);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.caption-text {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-image-panel {
    display: none;
  }

  .login-panel {
    padding: 32px 24px;
  }
}
