/* LinguistDesk - sign in, sign up and the other account pages (Components/Layout/AuthLayout.razor).
   The brand panel keeps its own deep green in every skin; the form follows the skin's tokens (lingodesk.css). */

.ld-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 42%) 1fr; background: var(--ld-bg); }

/* ---- the brand side ---- */
.ld-auth-brand {
  position: relative; display: flex; flex-direction: column; gap: 40px; padding: 40px 48px; color: #e7f2ef; overflow: hidden;
  background:
    radial-gradient(1200px 500px at -10% 110%, rgba(242, 181, 68, .16), transparent 60%),
    radial-gradient(700px 420px at 110% -10%, rgba(92, 194, 177, .22), transparent 60%),
    linear-gradient(160deg, #0d3a31 0%, #12483d 55%, #156b5b 100%);
}
.ld-auth-brand::after {
  /* a quiet speech-bubble outline, the logo's shape, in the corner */
  content: ""; position: absolute; right: -90px; bottom: -70px; width: 360px; height: 300px; border-radius: 64px 64px 64px 18px;
  border: 1.5px solid rgba(255, 255, 255, .08); transform: rotate(-8deg); pointer-events: none;
}
.ld-auth-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.ld-auth-logo img { border-radius: 9px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.ld-auth-logo:hover { color: #fff; }
.ld-auth-pitch { margin: auto 0; max-width: 460px; }
.ld-auth-pitch h2 { margin: 0 0 22px; color: #fff; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.ld-auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ld-auth-pitch li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.5; color: #cfe3de; }
.ld-auth-pitch li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(242, 181, 68, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2B544' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ld-auth-made { margin: 0; font-size: 13px; color: #9fc2ba; }

/* ---- the form side ---- */
.ld-auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.ld-auth-card { width: 100%; max-width: 420px; }
.ld-auth-title, .ld-auth-card h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--ld-fg); }
.ld-auth-lead { margin: 0 0 26px; color: var(--ld-muted); font-size: 15px; }
.ld-auth-form { display: grid; gap: 16px; }
.ld-auth-field { display: grid; gap: 6px; }
.ld-auth-field label, .ld-auth-label-row label { font-size: 14px; font-weight: 500; color: var(--ld-fg); margin: 0; }
.ld-auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ld-auth-label-row a { font-size: 13.5px; }

.ld-auth-card input[type=email], .ld-auth-card input[type=text], .ld-auth-card input[type=password], .ld-auth-card input[type=tel],
.ld-auth-card .form-control {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--ld-line-strong); border-radius: 10px; background: var(--ld-surface);
  color: var(--ld-fg); font: 16px var(--ld-font); text-align: left; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.ld-auth-card input::placeholder, .ld-auth-card .form-control::placeholder { color: var(--ld-muted); opacity: .8; }
.ld-auth-card input:focus, .ld-auth-card .form-control:focus {
  outline: none; border-color: var(--ld-accent); box-shadow: 0 0 0 4px var(--ld-accent-soft);
}
.ld-auth-card input[aria-invalid=true], .ld-auth-card .invalid:not([type=checkbox]) { border-color: var(--ld-danger); }
.ld-auth-card .valid.modified:not([type=checkbox]) { outline: none; }

.ld-auth-password { position: relative; }
.ld-auth-password input { padding-right: 72px; }
.ld-auth-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ld-accent); font: 500 13.5px var(--ld-font); cursor: pointer;
}
.ld-auth-reveal:hover { background: var(--ld-accent-soft); }
.ld-auth-reveal:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 1px; }

.ld-auth-hint { font-size: 13px; color: var(--ld-muted); }
.ld-auth-error, .ld-auth-card .validation-message, .ld-auth-card .text-danger { font-size: 13.5px; color: var(--ld-danger); }
.ld-auth-card .validation-errors { margin: 0 0 4px; padding-left: 18px; color: var(--ld-danger); font-size: 13.5px; }

.ld-auth-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ld-fg); cursor: pointer; margin: 0; }
.ld-auth-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ld-accent); }

.ld-auth-submit, .ld-auth-card .btn-primary {
  width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--ld-accent); color: var(--ld-accent-fg, #fff);
  font: 600 16px var(--ld-font); cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 20px -10px var(--ld-accent);
  transition: background .15s, transform .05s;
}
.ld-auth-submit:hover, .ld-auth-card .btn-primary:hover { background: var(--ld-accent-hover, var(--ld-accent)); color: var(--ld-accent-fg, #fff); }
.ld-auth-submit:active { transform: translateY(1px); }
.ld-auth-submit:focus-visible, .ld-auth-card .btn-primary:focus-visible { outline: 3px solid var(--ld-accent-soft); outline-offset: 2px; }

.ld-auth-alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border: 1px solid var(--ld-line-strong);
  border-radius: 10px; background: var(--ld-surface); color: var(--ld-fg); font: 500 15px var(--ld-font); cursor: pointer;
}
.ld-auth-alt:hover { border-color: var(--ld-accent); color: var(--ld-accent); }

.ld-auth-card .ld-social { margin-bottom: 20px; }
.ld-auth-card .ld-social-btn { height: 48px; border-radius: 10px; font-size: 15px; }

.ld-auth-switch { margin: 26px 0 6px; text-align: center; font-size: 15px; color: var(--ld-muted); }
.ld-auth-switch a { font-weight: 600; }
.ld-auth-small { margin: 0; text-align: center; font-size: 13.5px; }
.ld-auth-card a { color: var(--ld-accent); text-decoration: none; }
.ld-auth-card a:hover { text-decoration: underline; }

.ld-auth-status { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0 0 18px; border: 1px solid transparent; }
.ld-auth-status.is-error { background: var(--ld-danger-soft, #fdecea); color: var(--ld-danger); border-color: color-mix(in srgb, var(--ld-danger) 25%, transparent); }
.ld-auth-status.is-ok { background: var(--ld-accent-soft); color: var(--ld-accent); }

/* the other account pages (forgot / reset password, confirmations, two-step sign-in) keep the template's markup:
   made to look like the pages above */
.ld-auth-card .row { display: block; margin: 0; }
.ld-auth-card .row > [class*="col-"] { width: 100%; max-width: none; padding: 0; }
.ld-auth-card h2, .ld-auth-card h3 { font-size: 17px; font-weight: 600; margin: 18px 0 8px; }
.ld-auth-card hr { border: 0; border-top: 1px solid var(--ld-line); opacity: 1; margin: 20px 0; }
.ld-auth-card .form-floating { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ld-auth-card .form-floating > label {
  order: -1; position: static; transform: none; height: auto; padding: 0; border: 0; opacity: 1; color: var(--ld-fg); font-size: 14px; font-weight: 500;
}
.ld-auth-card .form-floating > .form-control { height: 48px; min-height: 48px; padding: 0 14px; }
.ld-auth-card .form-floating > .form-control::placeholder { color: var(--ld-muted); }
.ld-auth-card .form-floating > label::after { display: none; }
.ld-auth-card .btn-link { color: var(--ld-accent); padding-left: 0; padding-right: 0; }
.ld-auth-card p { color: var(--ld-fg); }

/* ---- tablets and phones: one column, the brand as a header ---- */
@media (max-width: 900px) {
  .ld-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ld-auth-brand { padding: 18px 20px; gap: 0; flex-direction: row; align-items: center; }
  .ld-auth-brand::after, .ld-auth-pitch, .ld-auth-made { display: none; }
  .ld-auth-logo { font-size: 18px; }
  .ld-auth-logo img { width: 30px; height: 30px; }
  .ld-auth-main { align-items: flex-start; padding: 32px 20px 40px; }
  .ld-auth-title, .ld-auth-card h1 { font-size: 26px; }
}
