/* ============================================================
   GARS-OPS Login Page — v20260226
   GARS-5 Official Color Palette + Montserrat headings
   ============================================================ */

:root {
  /* GARS-5 Official Brand Palette */
  --ops-brand-start:  #101A22;   /* Gray 900 — Sidebar Dark */
  --ops-brand-end:    #203343;   /* Gray 800 */
  --ops-brand-deep:   #081014;
  --ops-brand-mid:    #2A2E37;   /* Header */
  --ops-accent:       #DA382D;   /* Primary Brand Red */
  --ops-accent-dark:  #BF2E29;   /* Dark Red (hover) */
  --ops-accent-light: #E24A40;   /* Light Red */
  --ops-accent-blue:  #79A8CD;   /* Accent Blue */
  --ops-accent-blue2: #5B8FB9;   /* Info Blue */
  --ops-success:      #6BBEA5;
  --ops-page:         #FFFFFF;
  --ops-offwhite:     #F3F9FE;   /* Gray 100 */
  --ops-surface:      #F8F9FA;   /* Surface */
  --ops-text:         #42525D;   /* Text Primary */
  --ops-text-dark:    #101A22;   /* Gray 900 */
  --ops-muted:        #808285;   /* Text Secondary */
  --ops-border:       #E9EEF2;   /* Gray 200 / Divider */
  --ops-radius:       8px;
}

/* ── Animations ─────────────────────────────────────────── */

@keyframes gars-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gars-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Base ────────────────────────────────────────────────── */

body.garsops-login {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--ops-offwhite);
  color: var(--ops-text);
}

/* ── Layout ──────────────────────────────────────────────── */

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

.garsops-auth__brand {
  flex: 1 1 50%;
  min-width: 0;
  background:
    radial-gradient(800px circle at 15% 20%, rgba(218, 56, 45, 0.22), transparent 55%),
    radial-gradient(600px circle at 80% 70%, rgba(121, 168, 205, 0.15), transparent 50%),
    linear-gradient(140deg, var(--ops-brand-start) 0%, var(--ops-brand-end) 60%, #1a2b3a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 72px 80px;
  animation: gars-fade-in 0.6s ease both;
}

/* Subtle mesh grid overlay */
.garsops-auth__brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.garsops-auth__form {
  flex: 1 1 50%;
  min-width: 0;
  background: linear-gradient(180deg, var(--ops-page) 0%, var(--ops-offwhite) 100%);
  border-left: 1px solid rgba(233, 238, 242, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 80px;
  animation: gars-fade-up 0.55s ease 0.1s both;
}

/* ── Brand Panel ─────────────────────────────────────────── */

.garsops-brand {
  max-width: 520px;
  position: relative;
  z-index: 1;
  animation: gars-fade-up 0.6s ease 0.05s both;
}

.garsops-brand__logo {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.garsops-brand h1 {
  font-family: 'Montserrat', Inter, system-ui, -apple-system, sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
  color: #ffffff;
}

.garsops-brand__subtitle {
  font-family: 'Montserrat', Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.88;
  margin: 0 0 12px;
  color: #ffffff;
}

.garsops-brand__tagline {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.72;
  margin: 0 0 28px;
  color: #ffffff;
}

/* Brand feature dots */
.garsops-brand__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.garsops-brand__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
  color: #ffffff;
}

.garsops-brand__feature::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ops-accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(218, 56, 45, 0.6);
}

/* ── Form Panel ──────────────────────────────────────────── */

.garsops-form {
  width: min(440px, 100%);
  padding: 36px 36px 30px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid var(--ops-border);
  border-radius: calc(var(--ops-radius) + 6px);
  box-shadow:
    0 4px 6px rgba(16, 26, 34, 0.04),
    0 20px 60px rgba(16, 26, 34, 0.10);
}

.garsops-form h2 {
  font-family: 'Montserrat', Inter, system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ops-text-dark);
}

.garsops-form__subtitle {
  font-size: 13.5px;
  color: var(--ops-muted);
  margin: 0 0 22px;
  font-weight: 400;
}

.garsops-form .loginform {
  margin: 0;
}

.garsops-form .form-group {
  margin-bottom: 16px;
  text-align: left;
}

.garsops-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ops-text-dark);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.garsops-form .form-control {
  height: 46px;
  border-radius: var(--ops-radius);
  border: 1.5px solid var(--ops-border);
  box-shadow: none;
  font-size: 14px;
  color: var(--ops-text-dark);
  background: var(--ops-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.garsops-form .form-control::placeholder {
  color: #b0bcc8;
  font-weight: 400;
}

.garsops-form .form-control:focus {
  border-color: var(--ops-accent-blue);
  box-shadow: 0 0 0 3px rgba(121, 168, 205, 0.20);
  background: #ffffff;
  outline: none;
}

/* ── Remember Me ─────────────────────────────────────────── */

.garsops-form__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 20px;
}

.garsops-form__remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--ops-border);
  accent-color: var(--ops-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.garsops-form__remember label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ops-text);
  cursor: pointer;
  letter-spacing: 0;
}

/* ── Submit Button ───────────────────────────────────────── */

.garsops-form .btn-primary {
  width: 100%;
  height: 46px;
  border-radius: var(--ops-radius);
  background: var(--ops-accent);
  border: none;
  font-family: 'Montserrat', Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(218, 56, 45, 0.30);
}

.garsops-form .btn-primary:hover,
.garsops-form .btn-primary:focus {
  background: var(--ops-accent-dark);
  box-shadow: 0 4px 14px rgba(191, 46, 41, 0.35);
  transform: translateY(-1px);
}

.garsops-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(191, 46, 41, 0.25);
}

/* ── Alerts ──────────────────────────────────────────────── */

.garsops-form .alert {
  border-radius: var(--ops-radius);
  border: none;
  font-size: 13.5px;
  padding: 12px 16px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.garsops-form .alert-danger {
  background: rgba(218, 56, 45, 0.07);
  border-left: 3px solid var(--ops-accent);
  color: #8e221f;
}

.garsops-form .alert-danger strong {
  font-weight: 700;
  color: #8e221f;
}

.garsops-form .alert-success {
  background: rgba(107, 190, 165, 0.10);
  border-left: 3px solid var(--ops-success);
  color: #2d6b5a;
}

/* ── Footer links ────────────────────────────────────────── */

.garsops-form .forgot-password {
  margin-top: 16px;
  margin-bottom: 0;
  text-align: center;
}

.garsops-form .forgot-password a {
  color: var(--ops-accent-blue);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.garsops-form .forgot-password a:hover,
.garsops-form .forgot-password a:focus {
  color: var(--ops-accent-blue2);
  text-decoration: underline;
}

.garsops-form .forgot-password small,
.garsops-form .login-copyright small {
  color: inherit;
}

.garsops-form .login-copyright {
  margin-top: 20px;
  text-align: center;
  color: var(--ops-muted);
  font-size: 12px;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1023.98px) {
  .garsops-auth__brand,
  .garsops-auth__form {
    padding: 56px 48px;
  }
}

@media (max-width: 767.98px) {
  .garsops-auth {
    flex-direction: column;
  }

  .garsops-auth__brand,
  .garsops-auth__form {
    width: 100%;
    padding: 40px 24px;
  }

  .garsops-auth__form {
    border-left: 0;
    border-top: 1px solid var(--ops-border);
  }

  .garsops-form {
    padding: 28px 22px 22px;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .garsops-auth__brand {
    justify-content: flex-start;
    min-height: 260px;
  }

  .garsops-brand__features {
    display: none;
  }
}
