/* ==========================================================================
   Chaitanya — shared authentication page styles
   Used by: /login/index.php (and any future auth pages — forgot-password, etc.)
   ========================================================================== */

:root {
  --teal: #39CCCC;
  --teal-dark: #2FB6B6;
  --navy: #0A1821;
  --ice: #DBE9F2;
  --illustration-bg: #E4F1F8;
  --border: #CBDCE7;
  --muted: #5C7A8A;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
}

/* ---------- Card shell ---------- */

.auth-card {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}

/* ---------- Right: form panel ---------- */

.auth-form-panel {
  order: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  text-decoration: none;
  width: fit-content;
}

.auth-logo-mark {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.auth-title {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--navy);
}

.auth-subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 32px;
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input::placeholder {
  color: #97ADB9;
}

.field-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(57, 204, 204, 0.2);
}

.password-field {
  position: relative;
}

.password-field .field-input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.password-toggle:hover {
  background: var(--ice);
  color: var(--navy);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle .icon-hide {
  display: none;
}

.password-toggle.is-visible .icon-show {
  display: none;
}

.password-toggle.is-visible .icon-hide {
  display: block;
}

.field-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

.auth-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  background: var(--teal);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.auth-error {
  display: none;
  background: #FDECEA;
  border: 1px solid #F3B8B0;
  color: #9C3A2E;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.auth-error.is-visible {
  display: block;
}

.auth-success {
  display: none;
  background: #E6F7F5;
  border: 1px solid #A9E5DC;
  color: #1E7A6C;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.auth-success.is-visible {
  display: block;
}

.auth-footer-note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Alternate sign-in / sign-up ---------- */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, #E3E8EE);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1f2933;
  background: #fff;
  border: 1px solid #D0D7DE;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-google:hover {
  background: #F6F8FA;
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Left: illustration panel ---------- */

.auth-illustration-panel {
  order: 1;
  position: relative;
  background: var(--illustration-bg);
  overflow: hidden;
}

.auth-illustration-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (max-width: 860px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-illustration-panel {
    display: none;
  }

  .auth-form-panel {
    padding: 44px 30px;
    justify-content: flex-start;
    padding-top: 64px;
  }
}
