/* Fullscreen login composition and component styles. */

.auth-body-dark {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 194, 199, 0.1), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.13), transparent 34%),
    linear-gradient(135deg, #03101b 0%, #020817 48%, #061126 100%);
  color: #ffffff;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

.login-screen {
  height: 100vh;
  height: 100dvh;
  padding: 28px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(480px, 640px);
  gap: 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 8, 23, 0.08) 0%, rgba(2, 8, 23, 0.24) 52%, rgba(2, 8, 23, 0.58) 100%),
    url("/assets/login-wave-background-fa6d45d0.png") left center / cover no-repeat;
}

.login-brand-panel,
.login-card-panel {
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
}

.login-card-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 52% 28%, rgba(31, 73, 132, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(14, 29, 52, 0.84), rgba(3, 12, 27, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.34);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(170px, 25vh, 250px) 48px 40px;
  background: transparent;
}

.login-brand-panel::after {
  content: none;
}

.login-brand-center {
  position: relative;
  z-index: 1;
  width: min(430px, 62%);
}

.login-korex-logo {
  width: 100%;
  height: auto;
  display: block;
}

.login-trust-note {
  position: absolute;
  z-index: 1;
  left: clamp(32px, 5vw, 64px);
  bottom: clamp(82px, 12vh, 128px);
  display: flex;
  gap: 16px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
}

.login-trust-note strong,
.login-trust-note span {
  display: block;
}

.login-trust-note strong {
  font-size: 16px;
  font-weight: 700;
}

.login-trust-note span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.login-shield {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.72);
}

.login-shield svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.login-card-panel {
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 48px;
  box-sizing: border-box;
  overflow: hidden;
}

.login-card {
  width: min(500px, 100%);
  max-height: 100%;
}

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

.login-header h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 800;
}

.login-header p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.login-alert {
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 18px;
  font-size: 14px;
}

.login-alert {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.28);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.login-input-wrap {
  height: 56px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  box-sizing: border-box;
  background: rgba(2, 8, 23, 0.2);
}

.login-input-wrap:focus-within {
  border-color: rgba(0, 194, 199, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 194, 199, 0.12);
}

.login-input-wrap svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 1.7;
}

.login-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 17px;
}

.login-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 2px;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.remember-check input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.login-link,
.login-help a {
  color: #3b82f6;
  text-decoration: none;
}

.login-link:hover,
.login-help a:hover {
  text-decoration: underline;
}

.login-submit {
  height: 56px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, #43c5e7, #1d4ed8);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0;
}

.login-submit:hover {
  filter: brightness(1.05);
}

.login-help {
  margin-top: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 26px 0 18px;
}

.login-divider span {
  height: 1px;
  background: rgba(148, 163, 184, 0.27);
}

.login-divider p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.login-google {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: rgba(2, 8, 23, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.login-google:hover {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.28);
}

.google-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

/* Scrollable card variant for registration */
.login-card--scrollable {
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

/* Plan selector cards */
.login-plan-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.login-plan-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(2, 8, 23, 0.2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.login-plan-card:has(.login-plan-radio:checked) {
  border-color: rgba(0, 194, 199, 0.65);
  background: rgba(0, 194, 199, 0.06);
}

.login-plan-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.login-plan-content {
  flex: 1;
  min-width: 0;
}

.login-plan-name {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.login-plan-desc {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.login-plan-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.login-plan-card:has(.login-plan-radio:checked) .login-plan-check {
  border-color: #00c2c7;
  background: #00c2c7;
}

.login-plan-check svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: rgba(255, 255, 255, 0);
  stroke-width: 2.5;
  transition: stroke 0.15s;
}

.login-plan-card:has(.login-plan-radio:checked) .login-plan-check svg {
  stroke: #ffffff;
}

/* Login → signup CTA section */
.login-signup-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
}

.login-signup-cta p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.login-signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.login-signup-btn:hover {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
