/* ==========================================================
   Auth Pages — Geahsoft Hub branded auth UI
   Split layout with branded left panel
   ========================================================== */

:root {
  --auth-navy: #01296B;
  --auth-navy-light: #023E8A;
  --auth-navy-dark: #011B4A;
  --auth-accent: #0077B6;
  --auth-accent-hover: #005F94;
  --auth-text: #1e293b;
  --auth-text-secondary: #64748b;
  --auth-text-muted: #94a3b8;
  --auth-border: #e2e8f0;
  --auth-input-bg: #ffffff;
  --auth-radius: 10px;
  --auth-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  font-family: var(--auth-font);
  color: var(--auth-text);
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
}

/* ---- Split layout ---- */

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

/* Left branded panel */
.auth-panel {
  flex: 0 0 45%;
  max-width: 45%;
  background: linear-gradient(160deg, var(--auth-navy-light) 0%, var(--auth-navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0, 119, 182, 0.08);
  top: -100px;
  right: -100px;
}

.auth-panel::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  bottom: -80px;
  left: -80px;
}

.auth-panel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
}

.auth-panel-logo {
  margin-bottom: 2.5rem;
}

.auth-panel-logo img {
  height: 44px;
  width: auto;
}

.auth-panel-headline {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.auth-panel-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  padding: 0.625rem 0;
}

.auth-features li i {
  color: var(--auth-accent);
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Right form panel */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: #ffffff;
}

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

/* ---- Headings ---- */

.auth-heading {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--auth-text);
  margin: 0 0 0.375rem;
  letter-spacing: -0.02em;
}

.auth-subheading {
  font-size: 0.9375rem;
  color: var(--auth-text-secondary);
  margin: 0 0 2rem;
  font-weight: 400;
}

.auth-header {
  margin-bottom: 1.5rem;
}

/* ---- Form elements ---- */

.auth-input-group {
  margin-bottom: 1.25rem;
}

.auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 0.5rem;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.auth-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius);
  font-size: 0.9375rem;
  font-family: var(--auth-font);
  color: var(--auth-text);
  background: var(--auth-input-bg);
  transition: all 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.auth-input::placeholder {
  color: var(--auth-text-muted);
}

/* ---- Buttons ---- */

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: var(--auth-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--auth-font);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.auth-btn--primary {
  background: linear-gradient(135deg, #0F2B46 0%, #163a5c 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 43, 70, 0.3);
}

.auth-btn--primary:hover {
  background: linear-gradient(135deg, #163a5c 0%, #1e4d73 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 43, 70, 0.4);
}

/* ---- Links ---- */

.auth-forgot-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-forgot-link:hover {
  color: var(--auth-navy-light);
  text-decoration: underline;
}

/* ---- Alerts ---- */

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--auth-radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.auth-alert i {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

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

/* ---- Footer ---- */

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--auth-border);
  font-size: 0.875rem;
  color: var(--auth-text-secondary);
}

.auth-footer a {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: none;
}

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

/* ---- Responsive ---- */

@media (max-width: 991px) {
  .auth-panel {
    display: none;
  }

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

@media (max-width: 576px) {
  .auth-form-panel {
    padding: 1.5rem 1rem;
  }

  .auth-heading {
    font-size: 1.375rem;
  }
}
