/* ============================================================
   PawTrack - Sign-in / Landing Page Styles
   Island Paws Veterinary Services | San Juan, Siquijor
   ============================================================ */

.login-body {
  overflow: visible;
}

.login-shell {
  display: flex;
  min-height: 100vh;
}

/* ── LEFT: BRAND PANEL ── */
.login-brand {
  position: relative;
  flex: 1.15;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  background: var(--green-950);
  color: var(--green-50);
  overflow: hidden;
}

.tide-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .9;
}
.tide-lines svg {
  width: 100%;
  height: 100%;
}
.tide {
  fill: none;
  stroke-width: 2;
}
.tide-1 { stroke: var(--green-700); opacity: .55; }
.tide-2 { stroke: var(--green-600); opacity: .35; }
.tide-3 { stroke: var(--green-500); opacity: .22; }

.login-brand-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.login-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}
.login-brand .brand-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}
.login-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--green-50);
}
.login-brand .brand-sub {
  font-size: .8rem;
  color: var(--green-300);
  letter-spacing: .03em;
}

.login-heading {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.18;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
}

.login-tagline {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--green-200);
  max-width: 420px;
  margin-bottom: 44px;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-sm);
}
.feature-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  margin-bottom: 2px;
}
.feature-desc {
  font-size: .8125rem;
  color: var(--green-300);
  line-height: 1.55;
}

.login-brand-footer {
  position: relative;
  z-index: 1;
  font-size: .75rem;
  color: var(--green-400);
  opacity: .8;
}

/* ── RIGHT: SIGN-IN PANEL ── */
.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--gray-50);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card-head {
  margin-bottom: 28px;
}
.login-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--green-950);
  margin-bottom: 6px;
}
.login-subtitle {
  font-size: .875rem;
  color: var(--gray-500);
}

/* Role Tabs */
.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--gray-100);
  padding: 6px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.role-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}
.role-tab-icon {
  font-size: .95rem;
}
.role-tab.active {
  background: var(--white);
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
}
.role-tab:not(.active):hover {
  color: var(--green-700);
}

/* Alert */
.login-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: .8125rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.login-form .form-group.full {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.password-field {
  position: relative;
  display: flex;
}
.password-field .form-control {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  transition: background var(--ease);
}
.password-toggle:hover {
  background: var(--gray-100);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  cursor: pointer;
}
.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-700);
}
.login-link {
  color: var(--green-700);
  font-weight: 600;
}
.login-link:hover {
  text-decoration: underline;
}

.login-submit {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: var(--radius-sm);
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: .75rem;
  color: var(--gray-400);
  margin: 24px 0 16px;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.login-divider span {
  padding: 0 12px;
}

.login-help {
  text-align: center;
  font-size: .8125rem;
  color: var(--gray-500);
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .login-shell {
    flex-direction: column;
  }
  .login-brand {
    padding: 40px 32px;
    min-height: 420px;
  }
  .login-heading {
    font-size: 2.1rem;
  }
  .login-features {
    display: none;
  }
  .login-panel {
    padding: 32px 24px 56px;
  }
}

@media (max-width: 480px) {
  .login-brand {
    padding: 32px 24px;
    min-height: 340px;
  }
  .login-heading {
    font-size: 1.75rem;
  }
  .login-tagline {
    font-size: .9rem;
    margin-bottom: 28px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
