/* loginPage.css — uses theme.css (NO duplicate tokens) */

.auth{
  min-height: 100svh;
  display:grid;
  place-items:center;
  padding: 24px;
}

/* Card */
.card{
  width: 100%;
  max-width: 440px;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow:hidden;
  position: relative;
}

/* Decorative top strip */
.card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height: 76px;
  background: linear-gradient(90deg, rgba(47,111,78,.12), rgba(200,138,77,.10));
  border-bottom: 1px solid var(--line);
}

/* Title */
.title{
  position: relative;
  margin: 0 0 14px;
  padding-top: 10px;
  font-size: 1.45rem;
  letter-spacing: .2px;
}

.title::after{
  content:"";
  display:block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(47,111,78,.55);
  margin-top: 10px;
}

/* Fields */
.field{
  position: relative;
  margin-bottom: 14px;
}

label{
  display:inline-block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(31,42,34,.92);
}

input[type="text"],
input[type="password"]{
  width:100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline:none;
  background: rgba(255,255,255,.88);
  color: var(--text);
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}

input:focus{
  border-color: rgba(47,111,78,.55);
  box-shadow: 0 0 0 4px rgba(47,111,78,.14);
}

/* Password toggle */
.password-wrap{
  position: relative;
  display:block;
}

.password-wrap .toggle{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  padding: 6px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900;
  font-size: 12px;
  color: var(--accent-3);
}
.password-wrap .toggle:hover{
  border-color: rgba(47,111,78,.35);
}

/* Options row */
.options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 8px 0 10px;
}

.checkbox{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  user-select:none;
  color: var(--muted);
  font-size: 13px;
}

.checkbox input{ accent-color: var(--accent); }

.muted{
  color: var(--accent-3);
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
}
.muted:hover{ text-decoration: underline; }

/* Primary button */
.primary{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(47,111,78,.55);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(47,111,78,.95), rgba(30,77,54,.95));
  color: #fff;
  font-weight: 900;
  letter-spacing: .2px;
  cursor:pointer;
  transition: transform .08s ease, filter .15s ease;
}
.primary:hover{ filter: brightness(1.03); transform: translateY(-1px); }
.primary:active{ transform: translateY(0); }

/* Errors + messages */
.error{
  min-height: 1.1em;
  margin: 6px 2px 0;
  font-size: .9rem;
  color: var(--danger);
}

.message{
  min-height: 1.2em;
  margin-top: 12px;
  text-align:center;
  font-weight: 900;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(180,35,24,.18);
  border-radius: 12px;
  padding: 10px 10px;
}
.message:empty{
  padding: 0;
  border: 0;
  background: transparent;
  margin-top: 10px;
}

/* Mobile: edge-to-edge */
@media (max-width: 560px){
  .auth{ padding: 0; }
  .card{
    max-width: none;
    min-height: 100svh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 18px 16px;
  }
  .card::before{ height: 68px; }
  .title{ font-size: 1.25rem; }
}
