/* =============================================
   TheMeetyTalk — Portal Giriş Sayfaları
   ============================================= */

.portal-login {
  min-height: 100vh;
  background: var(--color-bg-secondary);
}

.portal-login__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.portal-login__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px clamp(32px, 5vw, 64px);
  color: #fff;
  overflow: hidden;
}

.portal-login__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1), transparent 40%);
  pointer-events: none;
}

.portal-login__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.portal-login__back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.portal-login__back:hover {
  color: #fff;
}

.portal-login__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.portal-login__badge-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.portal-login__hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.portal-login__hero-text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}

.portal-login__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-login__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.portal-login__features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.portal-login__hero-footer {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.portal-login__form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(24px, 4vw, 64px);
}

.portal-login__form-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.portal-login__form-header {
  margin-bottom: 28px;
}

.portal-login__form-header img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.portal-login__form-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.portal-login__form-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.portal-login__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.portal-login__note {
  margin: 0 0 20px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.portal-login__note a {
  font-weight: 600;
}

.portal-login__switcher {
  margin-top: 28px;
}

.portal-login__switcher-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}

.portal-login__switcher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.portal-login__switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 10px 6px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  transition: transform var(--transition), box-shadow var(--transition);
}

.portal-login__switch:hover:not(.portal-login__switch--current) {
  transform: translateY(-2px);
}

.portal-login__switch--current {
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0.72;
}

.portal-login__switch-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.portal-login__switch--member {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.portal-login__switch--partner {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.portal-login__switch--business {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.portal-login__switch--admin {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

/* Themes */
.portal-login--member .portal-login__hero {
  background: linear-gradient(145deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
}

.portal-login--member .portal-login__note a,
.portal-login--member .login-form__input:focus {
  border-color: #2563eb;
}

.portal-login--member .login-form__input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.portal-login--member .btn--primary {
  background: #2563eb;
}

.portal-login--member .btn--primary:hover {
  background: #1d4ed8;
}

.portal-login--partner .portal-login__hero {
  background: linear-gradient(145deg, #5b21b6 0%, #7c3aed 50%, #8b5cf6 100%);
}

.portal-login--partner .login-form__input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.portal-login--partner .portal-login__note a {
  color: #7c3aed;
}

.portal-login--partner .btn--primary {
  background: #7c3aed;
}

.portal-login--partner .btn--primary:hover {
  background: #6d28d9;
}

.portal-login--business .portal-login__hero {
  background: linear-gradient(145deg, #c2410c 0%, #ea580c 48%, #f97316 100%);
}

.portal-login--business .login-form__input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.portal-login--business .portal-login__note a {
  color: #ea580c;
}

.portal-login--business .btn--primary {
  background: #ea580c;
}

.portal-login--business .btn--primary:hover {
  background: #c2410c;
}

.portal-login--admin .portal-login__hero {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

.portal-login--admin .login-form__input:focus {
  border-color: #475569;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.2);
}

.portal-login--admin .btn--primary {
  background: #1e293b;
}

.portal-login--admin .btn--primary:hover {
  background: #0f172a;
}

@media (max-width: 960px) {
  .portal-login__layout {
    grid-template-columns: 1fr;
  }

  .portal-login__hero {
    min-height: auto;
    padding: 32px 24px;
  }

  .portal-login__hero-title {
    font-size: 1.75rem;
  }

  .portal-login__features {
    display: none;
  }

  .portal-login__hero-footer {
    display: none;
  }

  .portal-login__form-side {
    padding: 32px 20px 48px;
  }

  .portal-login__switcher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
