/* ═══════════════════════════
   login.css — login page only
═══════════════════════════ */

body { background: var(--navy); min-height: 100vh; display: flex; align-items: stretch; }

.login-split  { display: flex; width: 100%; min-height: 100vh; }

/* Brand panel */
.login-brand {
  flex: 1; min-width: 0;
  background: linear-gradient(160deg, #1A3040 0%, #1f4a60 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 50px 52px; position: relative; overflow: hidden;
}
.login-brand-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 59px,rgba(255,255,255,.022) 59px,rgba(255,255,255,.022) 60px),
    repeating-linear-gradient(90deg,transparent,transparent 59px,rgba(255,255,255,.022) 59px,rgba(255,255,255,.022) 60px);
}
.login-brand-wm {
  position: absolute; bottom: -20px; left: -8px; pointer-events: none;
  font-family: var(--serif); font-size: 170px; font-weight: 300;
  color: rgba(255,255,255,.035); white-space: nowrap; line-height: 1;
}
.login-brand-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 380px; height: 380px; right: -70px; top: -70px;
  background: radial-gradient(circle, rgba(139,111,71,.2) 0%, transparent 70%);
}
.brand-logo { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.brand-logo-text { font-family: var(--serif); font-size: 22px; font-weight: 300; letter-spacing: 4px; color: var(--white); }
.brand-mid { position: relative; z-index: 1; }
.brand-headline { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px); font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 18px; }
.brand-headline em { color: var(--gold-lt); font-style: italic; }
.brand-desc  { font-size: 14px; color: rgba(255,255,255,.48); line-height: 1.7; max-width: 340px; margin-bottom: 32px; }
.brand-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.brand-stat-num { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--white); line-height: 1; }
.brand-stat-lbl { font-size: 10px; color: rgba(255,255,255,.38); margin-top: 3px; }
.brand-quote {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.06); border-radius: 11px; padding: 18px 22px;
  border: .5px solid rgba(255,255,255,.1);
}
.brand-quote::before { content: '\201C'; font-family: var(--serif); font-size: 52px; color: var(--gold); line-height: 1; position: absolute; top: 6px; left: 14px; opacity: .4; }
.brand-quote p { font-family: var(--serif); font-size: 14px; font-style: italic; color: rgba(255,255,255,.68); line-height: 1.6; padding-top: 14px; margin-bottom: 11px; }
.brand-quote-author { font-size: 11px; color: rgba(255,255,255,.38); }

/* Form panel */
.login-form-panel {
  width: 460px; min-width: 400px; flex-shrink: 0;
  background: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 48px; position: relative;
}
.login-back { position: absolute; top: 22px; left: 22px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-lt); transition: color var(--t); }
.login-back:hover { color: var(--navy); }
.login-back i { font-size: 15px; }
.login-title { font-family: var(--serif); font-size: 34px; font-weight: 300; margin-bottom: 5px; }
.login-sub   { font-size: 13px; color: var(--text-mid); margin-bottom: 24px; }

/* Role tabs */
.login-role-tabs { display: flex; gap: 0; background: rgba(26,48,64,.07); border-radius: 8px; padding: 3px; margin-bottom: 24px; }
.login-role-btn {
  flex: 1; padding: 7px 8px; border-radius: 6px; border: none; background: none;
  cursor: pointer; font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: var(--text-lt); transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.login-role-btn i { font-size: 13px; }
.login-role-btn.active { background: var(--white); color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* Fields */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 5px; }
.field-wrap { position: relative; }
.field-wrap > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--text-lt); pointer-events: none; }
.field input {
  width: 100%; padding: 12px 13px 12px 40px;
  border: 1.5px solid rgba(26,48,64,.14); border-radius: 7px;
  font-family: var(--sans); font-size: 13px; color: var(--navy);
  background: var(--white); transition: border-color var(--t);
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(139,111,71,.1); }
.field input::placeholder { color: var(--text-lt); }
.field-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-lt); font-size: 15px;
}
.field-error { font-size: 11px; color: #c0392b; margin-top: 4px; display: none; }
.field.has-error input { border-color: #c0392b; }
.field.has-error .field-error { display: block; }

.login-notice {
  display: flex; align-items: center; gap: 8px;
  border-radius: 7px; padding: 10px 12px; margin-bottom: 14px;
  font-size: 12px; line-height: 1.45; font-weight: 500;
}
.login-notice.success {
  background: #EAF3DE; color: #27500A;
  border: 1px solid rgba(39,80,10,.12);
}
.login-notice.danger {
  background: #F9E9E7; color: #8A2A20;
  border: 1px solid rgba(138,42,32,.12);
}
.login-notice i { font-size: 16px; flex-shrink: 0; }

/* Extras row */
.login-extras { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.check-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-mid); cursor: pointer; }
.check-label input { width: 14px; height: 14px; accent-color: var(--gold); }
.forgot { font-size: 12px; color: var(--gold); }
.forgot:hover { text-decoration: underline; }

/* Submit */
.login-submit {
  width: 100%; padding: 14px; border: none; border-radius: 7px;
  background: var(--navy); color: var(--white);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--t); margin-bottom: 14px;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,48,64,.22); }
.login-submit:disabled { opacity: .7; cursor: default; transform: none; }
.login-submit.role-admin    { background: #6b3fac; }
.login-submit.role-reseller { background: #2c6e6e; }
.login-submit.role-gast     { background: #1a5276; }

/* Divider */
.login-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: .5px; background: rgba(26,48,64,.12); }
.login-divider span { font-size: 11px; color: var(--text-lt); }

/* Google SSO */
.login-google {
  width: 100%; padding: 12px; border: 1.5px solid rgba(26,48,64,.14); border-radius: 7px;
  background: var(--white); color: var(--navy); font-family: var(--sans); font-size: 12px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--t); margin-bottom: 20px;
}
.login-google:hover { border-color: var(--navy); background: var(--cream-dk); }

/* Footer */
.login-foot { font-size: 12px; color: var(--text-lt); text-align: center; }
.login-foot a { color: var(--gold); }
.login-foot a:hover { text-decoration: underline; }

/* Success */
.login-success {
  display: none; background: #EAF3DE; color: #27500A;
  border-radius: 7px; padding: 11px 15px; font-size: 12px;
  text-align: center; margin-top: 14px;
}
.login-success i { font-size: 15px; vertical-align: -2px; margin-right: 5px; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

@media (max-width: 780px) {
  .login-brand { display: none; }
  .login-form-panel { width: 100%; min-width: 0; padding: 40px 26px; }
}
