﻿:root {
  --auth-bg: #dfeeff;
  --auth-blue: #1a7be7;
  --auth-blue-deep: #0d67d8;
  --auth-text: #143f7a;
  --auth-muted: #6f84a7;
  --auth-border: rgba(42, 111, 197, 0.14);
  --auth-shadow: 0 24px 60px rgba(19, 74, 140, 0.14);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Manrope', sans-serif;
  background: var(--auth-bg);
  color: var(--auth-text);
}
body { min-height: 100vh; }
#app { min-height: 100vh; }

.auth-shell {
  min-height: 100vh;
  padding: 22px 34px 32px;
  background: linear-gradient(rgba(152, 212, 255, 0.08), rgba(152, 212, 255, 0.08)), url('/assets/login-page.png') center/cover no-repeat;
  position: relative;
}

.auth-main {
  max-width: 1320px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 34px;
  min-height: calc(100vh - 70px);
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 8px;
  transform: translateY(-180px);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(31, 94, 181, 0.35);
  background: rgba(255,255,255,0.18);
  color: #0c4da8;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.auth-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
  color: #0f4ea7;
  font-weight: 900;
  max-width: 620px;
}

.auth-hero h1 span {
  display: block;
  color: #1a7be7;
}

.auth-hero p {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 1.18rem;
  line-height: 1.55;
  color: rgba(13, 73, 164, 0.82);
}

.auth-form-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  width: min(100%, 560px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--auth-border);
  border-radius: 28px;
  box-shadow: var(--auth-shadow);
  padding: 26px 26px 24px;
  backdrop-filter: blur(8px);
}

.card-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #113c83;
  font-weight: 800;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

.card-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: url("/assets/logo.png") center/cover no-repeat;
  color: transparent;
  font-size: 1.15rem;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}

.card-brand-name {
  font-size: clamp(2rem, 2vw, 2.8rem);
  letter-spacing: -0.06em;
  color: #0f4ea7;
}

.card-text {
  margin: 0 0 20px;
  text-align: center;
  color: rgba(19, 62, 127, 0.8);
  font-size: 1.02rem;
}

.error-banner {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 98, 84, 0.12);
  border: 1px solid rgba(255, 98, 84, 0.24);
  color: #c93827;
  font-size: 0.88rem;
}

.error-banner.show { display: block; }

#loginForm,
#registerForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  border-radius: 16px;
  border: 1px solid rgba(37, 102, 194, 0.18);
  background: rgba(255,255,255,0.72);
  overflow: hidden;
}

.field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  font-size: 1.1rem;
  color: rgba(19, 62, 127, 0.7);
}

.field-wrap input,
.field-wrap select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--auth-text);
  font: inherit;
  padding: 16px 16px 16px 0;
  outline: none;
  font-size: 1rem;
}

.field-wrap input::placeholder { color: rgba(19, 62, 127, 0.52); }

.field-visibility {
  border: 0;
  background: transparent;
  color: rgba(19, 62, 127, 0.76);
  font-size: 1.1rem;
  cursor: pointer;
  margin-right: 14px;
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
  color: rgba(19, 62, 127, 0.8);
  font-size: 0.92rem;
}

.remember-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--auth-blue);
}

.remember-row a,
.auth-switch a {
  color: var(--auth-blue);
  text-decoration: none;
  font-weight: 700;
}

.submit-btn {
  height: 62px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f8fff, #0d67d8);
  color: white;
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(19, 111, 215, 0.28);
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(19, 62, 127, 0.65);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 10px 0 2px;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(30, 88, 168, 0.18);
}

.auth-switch {
  margin: 2px 0 0;
  text-align: center;
  color: rgba(19, 62, 127, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .auth-shell { padding: 18px 18px 28px; }
  .auth-main {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 18px;
  }
  .auth-hero { align-items: center; text-align: center; }
  .auth-hero h1 { max-width: 100%; }
  .auth-form-side { justify-content: center; }
  .auth-card { width: min(100%, 520px); }
}






