@import url('/css/theme_v3.css');

:root{
  --bg: var(--theme-bg);
  --surface: var(--theme-surface);
  --surface-soft: var(--theme-surface-soft);
  --surface-soft-2: var(--theme-surface-soft-2);
  --line: var(--theme-border);
  --line-strong: var(--theme-border-strong);
  --text: var(--theme-text);
  --muted: var(--theme-text-muted);
  --hint: var(--theme-text-hint);
  --focus: var(--theme-focus);
  --primary: var(--theme-primary);
  --primary-hover: var(--theme-primary-hover);
}

*{ box-sizing:border-box; }
html, body{ min-height:100%; }

body{
  margin:0;
  font-family: var(--theme-font-family);
  color: var(--text);
  background:
    radial-gradient(1200px 520px at -10% -20%, rgba(21, 101, 192, 0.10), transparent 65%),
    radial-gradient(1200px 520px at 110% 120%, rgba(2, 119, 189, 0.08), transparent 65%),
    var(--bg);
  padding: clamp(12px, 2vw, 24px);
}

.auth-shell{
  width:min(1260px, 100%);
  margin:0 auto;
}

.auth-layout{
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(640px, 90vh, 920px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.auth-side{
  min-width:0;
}

.auth-side-form{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(24px, 3.8vw, 56px);
  background: var(--surface);
}

.auth-panel{
  width:100%;
  max-width: 460px;
}

.eyebrow{
  margin:0 0 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.title{
  margin:0 0 8px;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height:1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.subtitle{
  margin:0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.form{
  width:100%;
}

.field{
  margin-top: 13px;
}

label{
  display:block;
  margin: 0 0 7px 2px;
  font-size: 12px;
  color: var(--muted);
  user-select:none;
}

.input{
  width:100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
  appearance: none;
}

.input::placeholder{
  color: var(--hint);
}

.input:focus{
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px var(--focus);
  background: #fff;
}

.select{
  cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8fa0b3 50%),
    linear-gradient(135deg, #8fa0b3 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.select:invalid{
  color: var(--hint);
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 14px;
}

.remember{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  color: var(--muted);
}

.remember input{
  width:16px;
  height:16px;
  accent-color: var(--primary);
  cursor:pointer;
}

.btn{
  width:100%;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.08);
  background: var(--primary);
  color:#fff;
  font-weight: 700;
  letter-spacing: .01em;
  cursor:pointer;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 12px 24px rgba(13,71,161,.20);
}

.btn:hover{ background: var(--primary-hover); }
.btn:active{ transform: translateY(1px); }

.btn.secondary{
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  color: var(--text);
}

.btn.secondary:hover{
  background: var(--surface-soft);
}

.footer{
  margin-top: 16px;
  display:flex;
  justify-content:center;
  gap:8px;
  font-size:13px;
  color: var(--muted);
}

.footer a{
  color: var(--text);
  text-decoration:none;
  border-bottom: 1px dashed #c7d3df;
}

.footer a:hover{
  border-bottom-color: #9eb2c6;
}

.auth-side-showcase{
  border-left: 1px solid var(--line);
  background:
    linear-gradient(165deg, var(--surface-soft-2) 0%, #f8fbff 45%, #ffffff 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(24px, 3.8vw, 56px);
}

.showcase-content{
  width:100%;
  max-width: 470px;
}

.app-logo{
  width: min(260px, 72%);
  height:auto;
  object-fit:contain;
  margin-bottom: 14px;
}

.showcase-content h2{
  margin:0 0 10px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #0b1f36;
}

.showcase-subtitle{
  margin:0 0 18px;
  color: #44556a;
  line-height:1.6;
  font-size: 15px;
}

.usp-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.usp-list li{
  position:relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid #d8e3ef;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  color:#33465b;
  line-height:1.45;
}

.usp-list li::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  width:16px;
  height:16px;
  margin-top:-8px;
  border-radius:50%;
  background: radial-gradient(circle at 40% 40%, #ffffff 0%, #ffffff 24%, #2f6fb0 26%, #1f5ea0 100%);
  box-shadow: 0 0 0 4px rgba(21,101,192,0.12);
}

@media (max-width: 1080px){
  .auth-layout{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-side-showcase{
    border-left: 0;
    border-top: 1px solid var(--line);
    order: 2;
  }

  .auth-side-form{
    order: 1;
  }
}

@media (max-width: 600px){
  body{ padding: 10px; }

  .auth-layout{
    border-radius: 16px;
  }

  .auth-side-form,
  .auth-side-showcase{
    padding: 16px;
  }

  .title{
    font-size: 30px;
  }

  .showcase-content h2{
    font-size: 24px;
  }

  .app-logo{
    width: min(220px, 65%);
  }
}
