/* ================================================================
   login.css — Hillside Medical Group Login Page
   ================================================================ */

body {
  background: var(--card-bg);
}

.login-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Left Panel — Navy brand ── */

.login-left {
  flex: 1;
  background: linear-gradient(155deg, #0D1B3E 0%, #1A2F5E 45%, #162650 100%);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid pattern */
.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Decorative blobs — solid, no translucency */
.login-left::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  top: -160px;
  right: -160px;
  pointer-events: none;
}

.login-bg { display: none; } /* remove old animated shapes */

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

.login-brand {
  margin-bottom: 52px;
}

.login-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.login-title {
  font-size: 38px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.login-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  margin-bottom: 48px;
  font-weight: 400;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.login-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
}

.login-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 3px;
}

.login-feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.52);
  line-height: 1.5;
}

/* ── Right Panel — login card ── */

.login-right {
  width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
}

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

.login-card-header {
  margin-bottom: 36px;
  text-align: center;
}

.login-card-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.login-error {
  background: var(--red-light);
  border: 1px solid #FECDD3;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

.login-domain-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
}

/* ── Google Button ── */

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: var(--font);
  margin-bottom: 24px;
  letter-spacing: -0.1px;
}

.google-btn:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
  background: var(--bg);
  text-decoration: none;
  color: var(--text-primary);
}

.google-btn.loading {
  opacity: 0.65;
  cursor: not-allowed;
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--border);
  border-top-color: var(--text-secondary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-divider span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-footer-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  font-weight: 500;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .login-container { flex-direction: column; }

  .login-left {
    padding: 48px 32px;
    min-height: 300px;
    flex: none;
  }

  .login-right {
    width: 100%;
    padding: 48px 24px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .login-title { font-size: 30px; }
}
