/* css/auth.css */
/* jshint esversion: 11 */

:root{
  --ll-card-bg: #ffffff;
  --ll-text: #111;
  --ll-muted: #4b4b4b;
  --ll-line: #e6e6e6;

  --ll-input-border: #cfcfcf;
  --ll-input-border-focus: #4a90e2;

  --ll-btn-bg: #0a0a0a;
  --ll-btn-bg-hover: #000;
  --ll-btn-text: #fff;

  --ll-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* page */
html, body { height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ll-text);
  overflow: hidden;
}

/* background (metal-like without needing an image) */
.ll-auth-bg{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 55% 8%, rgba(255,255,255,.28), rgba(255,255,255,0) 55%),
    radial-gradient(600px 400px at 70% 55%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #0a0a0a 0%, #111 35%, #0d0d0d 70%, #050505 100%);
  filter: saturate(0.85) contrast(1.05);
}
.ll-auth-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.35));
  pointer-events:none;
}

/* center layout */
.ll-auth{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

/* card */
.ll-card{
  width: 680px;
  max-width: min(92vw, 720px);
  border-radius: 6px;
  background: var(--ll-card-bg);
  box-shadow: var(--ll-shadow);
  overflow: hidden;
}

/* header */
.ll-card-head{
  padding: 22px 30px 18px 30px;
}
.ll-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.ll-brand-logo{
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.ll-brand-name{
  font-weight: 800;
  letter-spacing: .8px;
  font-size: 20px;
}

/* separators */
.ll-card-sep{
  height: 1px;
  background: var(--ll-line);
}
.ll-sep-body{ margin-top: 20px; }

/* body */
.ll-card-body{
  padding: 26px 30px 22px 30px;
}
.ll-title{
  margin: 0 0 12px 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.ll-subtitle{
  margin: 0 0 18px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.35;
}

/* banner */
.ll-banner{
  border: 1px solid #d8e6ff;
  background: #f3f8ff;
  color: #163a6b;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0 14px 0;
  font-size: 14px;
}

/* form */
.ll-form{
  display: grid;
  gap: 10px;
}
.ll-label{
  font-size: 13px;
  color: #333;
  margin-top: 2px;
}
.ll-input{
  height: 44px;
  border: 1px solid var(--ll-input-border);
  border-radius: 2px;
  padding: 0 12px;
  font-size: 16px;
  outline: none;
}
.ll-input:focus{
  border-color: var(--ll-input-border-focus);
  box-shadow: 0 0 0 3px rgba(74,144,226,.20);
}
.ll-input.ll-invalid{
  border-color: #d12a2a;
  box-shadow: 0 0 0 3px rgba(209,42,42,.12);
}

/* button */
.ll-btn-primary{
  margin-top: 10px;
  height: 48px;
  border: 0;
  border-radius: 4px;
  background: var(--ll-btn-bg);
  color: var(--ll-btn-text);
  font-size: 16px;
  cursor: pointer;
}
.ll-btn-primary:hover{ background: var(--ll-btn-bg-hover); }
.ll-btn-primary:active{ transform: translateY(1px); }

/* bottom text */
.ll-foot{
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 14px;
  font-size: 15px;
}
.ll-muted{ color: var(--ll-muted); }

.ll-inline-link{
  color: #0b57d0;
  text-decoration: underline;
}
.ll-inline-link:hover{ filter: brightness(0.9); }

/* email pill row in step 2 */
.ll-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ll-row-slim{ margin-top: 6px; }

.ll-email-pill{
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 13px;
  color: #333;
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: default;
}

.ll-link-btn{
  border: 0;
  background: transparent;
  color: #0b57d0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0;
}

/* help bottom-left like screenshot */
.ll-help{
  position: fixed;
  left: 18px;
  bottom: 14px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  z-index: 3;
}
.ll-help-title{
  opacity: .92;
  margin-bottom: 4px;
}
.ll-help-link{
  color: rgba(255,255,255,.95);
  text-decoration: underline;
}

/* utils */
.ll-hidden{ display: none !important; }

@media (max-width: 520px){
  .ll-card-body{ padding: 22px 18px 18px 18px; }
  .ll-title{ font-size: 34px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .ll-btn-primary:active{ transform: none; }
}

/* ===========================================================
   Google button layout
   =========================================================== */

.ll-btn-google{
  height: 46px;
  border-radius: 4px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #111;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 15px;
  font-weight: 600;
}
.ll-btn-google:hover{
  background: #f8f9fa;
}
.ll-btn-google:active{
  transform: translateY(1px);
}
.ll-google-ico{
  width: 18px;
  height: 18px;
  display: inline-block;
}

.ll-divider{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0 2px 0;
  color: #666;
  font-size: 13px;
}
.ll-divider::before,
.ll-divider::after{
  content: "";
  height: 1px;
  background: #e6e6e6;
}

/* ===========================================================
   License tier select (cards)
   =========================================================== */

.ll-tier-block{
  margin-top: 6px;
  padding-top: 10px;
}
.ll-tier-title{
  font-size: 13px;
  color: #333;
  margin: 6px 0 8px 0;
}
.ll-tier-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px){
  .ll-tier-grid{ grid-template-columns: 1fr; }
}

.ll-tier{
  border: 1px solid #d9d9d9;
  background: #fafafa;
  border-radius: 6px;
  padding: 12px 12px;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.ll-tier:hover{
  border-color: #bfbfbf;
  background: #f7f7f7;
}
.ll-tier.is-selected{
  border-color: #3a86ff;
  box-shadow: 0 0 0 3px rgba(58,134,255,.16);
  background: #f2f7ff;
}

.ll-tier-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ll-tier-name{
  font-weight: 800;
  letter-spacing: .2px;
}
.ll-tier-price{
  font-weight: 800;
  color: #111;
}
.ll-tier-desc{
  margin-top: 6px;
  color: #444;
  font-size: 13px;
  line-height: 1.35;
}
.ll-tier-badges{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ll-badge{
  font-size: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 4px 8px;
  border-radius: 999px;
}

.ll-checkrow{
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #333;
}
.ll-checkrow input{ margin-top: 2px; }

/* small helper */
.ll-note{
  font-size: 12px;
  color: #555;
  line-height: 1.35;
}
