/* =========================================================
   TMCC Auth (Login) Styles
   Place this file at: public/css/auth.css
   Load in Blade with: <link rel="stylesheet" href="{{ asset('css/auth.css') }}">

   Shares the same palette/tokens as dashboard.css so the
   login screen feels like the same product as the portal.
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #F6F5F2;
  color: #2C2C2A;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #C0272D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #C0272D;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.auth-card {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 520px;
  background: #fff;
  border: 1px solid #ECE9E2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(44, 44, 42, 0.08);
}

/* ---------- Left brand panel ---------- */
.auth-brand-panel {
  flex: 1;
  background: #C0272D;
  background-image: radial-gradient(circle at 20% 15%, #D8474D 0%, #C0272D 45%, #7A1B1E 100%);
  color: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* .auth-brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #C0272D;
  letter-spacing: 0.5px;
  flex-shrink: 0;
} */
.brand-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
}
.auth-brand-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.auth-brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.auth-brand-mid {
  margin-top: 40px;
}
.auth-brand-headline {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}
.auth-brand-copy {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 320px;
}

.auth-brand-foot {
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
}

/* ---------- Right form panel ---------- */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 40px;
  min-width: 0;
}
.auth-form-inner {
  width: 100%;
  max-width: 340px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: #2C2C2A;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 13px;
  color: #8B8B86;
  margin-bottom: 28px;
}

.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #4A4A46;
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ECE9E2;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: #2C2C2A;
  background: #FBFAF8;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-input:focus {
  border-color: #C0272D;
  background: #fff;
}
.auth-input.is-invalid {
  border-color: #C0272D;
  background: #FCEFEF;
}

.auth-input-group {
  position: relative;
}
.auth-input-group .auth-input {
  padding-right: 42px;
}
.auth-toggle-password {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #A0A09A;
  font-size: 15px;
}
.auth-toggle-password:hover {
  background: #F1EFE8;
  color: #6B6B67;
}
.auth-toggle-password:focus-visible {
  outline: 2px solid #C0272D;
  outline-offset: 1px;
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 12.5px;
}
.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6B6B67;
}
.auth-forgot-link {
  color: #C0272D;
  font-weight: 600;
  text-decoration: none;
}
.auth-forgot-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #C0272D;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.auth-submit:hover { background: #A32120; }

.auth-errors {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FCEFEF;
  border: 1px solid #F2C7C7;
}
.auth-errors p {
  font-size: 12.5px;
  color: #A32120;
  font-weight: 500;
  line-height: 1.5;
}
.auth-errors p + p { margin-top: 2px; }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablets: keep split layout but tighten padding */
@media (max-width: 900px) {
  .auth-brand-panel,
  .auth-form-panel {
    padding: 36px 28px;
  }
}

/* Phones: stack — brand panel becomes a compact header banner */
@media (max-width: 700px) {
  body.auth-body { padding: 0; }

  .auth-card {
    flex-direction: column;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    max-width: 100%;
  }

  .auth-brand-panel {
    flex: none;
    padding: 28px 24px;
  }
  .auth-brand-mid { margin-top: 22px; }
  .auth-brand-headline { font-size: 20px; }
  .auth-brand-copy { max-width: none; }
  .auth-brand-foot { display: none; }

  .auth-form-panel {
    flex: none;
    padding: 32px 24px 40px;
  }
}
