/* pages/portal/login.css */
/* No-Scroller */
html, body {overflow:hidden}

/* Keep content above background */
.login-shell{
  min-height: calc(100vh - var(--header-offset, 84px));
  display: flex;
}

/* Layout */
.login-grid{
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 920px){
  .login-grid{ grid-template-columns: 1fr; }
}

/* Intro */
.login-title{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  margin: 10px 0 10px;
}

.login-subtitle{
  width: 100%;
  max-width: 720px;
}

.login-intro{
  width: 100%;
  max-width: 720px;
}

/* Card */
.login-card{
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 28px);
}

.login-card-wrap{
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.login-grid.container{
  justify-items: center;
}

.login-card-title{ margin: 8px 0 6px; }
.login-card-desc{ margin: 0 0 18px; }

/* Inputs */
.login-form{ display: grid; gap: 14px; }

.field-label{
  display:block;
  font-size: 13px;
  margin-bottom: 8px;
  opacity: .9;
}

.field-input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: inherit;
  outline: none;
}

.field-input:focus{
  border-color: color-mix(in oklab, var(--brand) 70%, white);
}

.field-help{
  margin-top: 7px;
  font-size: 12px;
  min-height: 16px;
}

/* Password toggle */
.field-password{ position: relative; }
.field-password .field-input{ padding-right: 74px; }

.field-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.15);
  color: inherit;
  cursor: pointer;
}

/* Row */
.login-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}

/* Footer */
.login-notice{
  width: 100%;
  max-width: 720px;
  border-radius: 18px; /* match login-card */
  padding: clamp(18px, 2.4vw, 28px); /* match login-card */
}

.login-contact{
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: space-between; /* key */
  gap: 3rem;
  margin-top: 1.25rem;
  flex-wrap: nowrap;
}

.login-contact-row{
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.login-contact-row:last-child{
  text-align: right;
  align-items: flex-end;
}

.login-contact-label{
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-footer{
  margin-top: auto;
  padding-top: 18px;
}

.login-legal{
  text-align: center;
  font-size: 12px;
  opacity: .7;
}

@media (max-width: 520px){
  .login-contact{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .login-contact-row:last-child{
    text-align: left;
    align-items: flex-start;
  }
}

/* Spinner */
.login-spinner{
  display:none;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: transparent;
  animation: spin 900ms linear infinite;
}

.is-loading .login-spinner{ display:inline-block; }

@keyframes spin{ to { transform: rotate(360deg); } }

.login-legal{
  text-align:center;
  font-size: 12px;
  opacity: .7;
}
