/* login.css */

.login-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
  min-height: 100dvh;
}

.login-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.login-icon {
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,122,255,.25);
}
.login-icon img { display: block; }

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--label);
  text-align: center;
  margin-bottom: 6px;
}

.login-sub {
  font-size: 15px;
  color: var(--label-3);
  text-align: center;
  margin-bottom: 36px;
}

.login-providers {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-divider {
  font-size: 13px;
  color: var(--label-4);
  text-align: center;
  margin: 4px 0;
}

@media (max-height: 600px) and (orientation: landscape) {
  .login-card { flex-direction: row; flex-wrap: wrap; gap: 16px; max-width: 560px; }
  .login-icon, .login-title, .login-sub { width: 100%; }
  .login-providers { flex: 1; }
}

/* ── Redesign (2026-10): brand panel + sign-in ─────────────────────────────── */

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

.login-hero {
  flex: 1 1 52%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 56px;
  color: #fff;
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(43, 136, 235, .38), transparent 65%),
    radial-gradient(60% 50% at 0% 100%, rgba(43, 136, 235, .16), transparent 60%),
    var(--ink);
}
.login-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.login-hero__brand:hover { text-decoration: none; }
.login-hero__brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.login-hero__copy { position: relative; z-index: 1; max-width: 520px; }
.login-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.login-hero__sub { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.login-hero__mark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 300px;
  height: 300px;
  border-radius: 64px;
  opacity: .9;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}

.login-wrap { flex: 1 1 48%; min-height: 0; padding: 48px 32px; }
.login-card { max-width: 380px; }
.login-icon { box-shadow: 0 10px 26px rgba(28, 28, 46, .25); border-radius: 16px; display: none; }
.login-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.login-sub { font-size: 16px; margin-bottom: 30px; }
.login-legal { margin-top: 24px; font-size: 13px; line-height: 1.55; color: var(--label-3); text-align: center; }

@media (max-width: 899px) {
  .login-shell { flex-direction: column; }
  .login-hero { display: none; }
  .login-wrap { min-height: 100dvh; padding: 32px 18px; }
  .login-icon { display: block; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .login-hero__mark { width: 220px; height: 220px; right: -60px; }
}
