/* Login / register: brand panel + compact form card */
@import url("../vendor/fonts/inter/inter.css");

.ap-auth {
    --ap-navy: #2c3e50;
    --ap-navy-2: #22303e;
    --ap-red: #d7262f;
    --ap-line: #dde1e6;
    --ap-mute: #66707c;
    --ap-fg: #1f2730;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 44%) 1fr;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ap-fg);
    background: #eef0f3;
}

.ap-brand {
    position: relative;
    color: #fff;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1d2329 center / cover no-repeat;
    overflow: hidden;
}
.ap-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(29, 35, 41, .94) 30%, rgba(29, 35, 41, .72));
}
.ap-brand > * { position: relative; }
.ap-brand-logo img { height: 34px; }
.ap-brand h1 { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; max-width: 420px; }
.ap-brand p { color: #c2c7d0; font-size: 15px; margin: 0 0 24px; max-width: 420px; }
.ap-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ap-points li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #e4e7eb; }
.ap-points i {
    width: 30px; height: 30px; border-radius: 8px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .1); font-style: normal; font-size: 14px;
}
.ap-brand-foot { font-size: 12.5px; color: #9aa1aa; }

.ap-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.ap-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 12px 32px rgba(20, 30, 40, .06);
}
.ap-card-wide { max-width: 520px; }
.ap-card h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.ap-sub { color: var(--ap-mute); font-size: 14px; margin: 0 0 20px; }

.ap-field { margin-bottom: 14px; }
.ap-field label { display: block; font-size: 12.5px; font-weight: 600; color: #4a5562; margin-bottom: 5px; }
.ap-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--ap-line);
    border-radius: 9px;
    background: #fbfcfd;
    transition: border-color .15s, box-shadow .15s;
}
.ap-input:focus-within { border-color: #8aa4bf; box-shadow: 0 0 0 3px rgba(44, 62, 80, .12); background: #fff; }
.ap-input > .ap-ico { width: 38px; text-align: center; color: #8f97a1; font-size: 14px; flex: none; }
.ap-input > .ap-pre { padding: 0 4px 0 12px; color: #4a5562; font-weight: 600; font-size: 14px; }
.ap-input input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14.5px;
    padding: 0 12px 0 0;
    color: var(--ap-fg);
}
.ap-input .ap-pre + input { padding-left: 4px; }
.ap-eye { border: 0; background: transparent; width: 40px; height: 40px; color: #8f97a1; cursor: pointer; }
.ap-eye:hover { color: var(--ap-fg); }
.ap-err { display: block; color: var(--ap-red); font-size: 12px; margin-top: 4px; }
.ap-alert { border-radius: 9px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px; }
.ap-alert-ok { background: #e3f5e8; color: #1e5f30; border: 1px solid #bfe5c9; }
.ap-alert-err { background: #fde8ea; color: #8f1d2a; border: 1px solid #f3c2c8; }

.ap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ap-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; margin: 2px 0 16px; }
.ap-check input { width: 16px; height: 16px; accent-color: var(--ap-navy); }
.ap-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 9px;
    background: var(--ap-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.ap-btn:hover { background: var(--ap-navy-2); }
.ap-btn:focus-visible { outline: 3px solid rgba(44, 62, 80, .35); outline-offset: 2px; }
.ap-switch { text-align: center; font-size: 14px; color: var(--ap-mute); margin: 18px 0 0; }
.ap-switch a { color: var(--ap-red); font-weight: 600; text-decoration: none; }
.ap-switch a:hover { text-decoration: underline; }
.ap-captcha { margin: 4px 0 14px; min-height: 78px; }
.ap-note { font-size: 12px; color: var(--ap-mute); margin: 12px 0 0; text-align: center; }

@media (max-width: 991.98px) {
    .ap-auth { grid-template-columns: 1fr; }
    .ap-brand { padding: 18px 20px; flex-direction: row; align-items: center; min-height: 0; }
    .ap-brand-body, .ap-brand-foot { display: none; }
    .ap-main { align-items: flex-start; padding: 20px 14px 32px; }
    .ap-card { padding: 22px 18px 20px; box-shadow: none; }
}
@media (max-width: 480px) {
    .ap-row { grid-template-columns: 1fr; }
    .ap-captcha { transform: scale(.9); transform-origin: 0 0; }
}
/* Neutralise old layout rules that target #authForm */
body { margin: 0; background: #eef0f3; }
.ap-card#authForm { width: 100% !important; margin: 0 !important; min-height: 0 !important; }
@media (max-width: 991.98px) {
    .ap-auth { grid-template-rows: auto 1fr; align-content: start; }
    .ap-brand { height: auto; min-height: 0; background-position: center 40%; }
    .ap-brand-logo img { height: 28px; }
}
/* Equal columns regardless of content (phone prefix made row 2 uneven) */
.ap-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ap-row > .ap-field { min-width: 0; }
.ap-input { min-width: 0; }
/* Line icons */
.ap-svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ap-input > .ap-ico { display: inline-flex; justify-content: center; }
.ap-points i { color: #fff; }
.ap-points i .ap-svg { width: 16px; height: 16px; }
.ap-eye { display: inline-flex; align-items: center; justify-content: center; }
.ap-card { border-color: #d5dbe2; }
.ap-input { border-color: #d5dbe2; background: #fff; }
@media (max-width: 480px) { .ap-row { grid-template-columns: minmax(0, 1fr); } }
.ap-input > input:first-child { padding-left: 12px; }

/* Pending / blocked account state */
.ap-state { text-align: left; }
.ap-state-ico {
    width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: #fff4d6; color: #8a5a00; margin-bottom: 14px;
}
.ap-state-ico .ap-svg { width: 24px; height: 24px; }
.ap-state-ico.ap-state-err { background: #fde8ea; color: var(--ap-red); }
.ap-state .ap-sub { line-height: 1.55; }
.ap-steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; }
.ap-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ap-mute); padding: 8px; border-radius: 8px; background: #f3f5f8; }
.ap-steps li span { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #d5dbe2; color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.ap-steps li.done span { background: #28a745; }
.ap-steps li.now { background: #fff4d6; color: #6b4a07; font-weight: 600; }
.ap-steps li.now span { background: #e0a800; }
.ap-who { font-size: 13.5px; padding: 12px; border: 1px solid var(--ap-line); border-radius: 9px; margin-bottom: 14px; line-height: 1.5; }
.ap-who span { color: var(--ap-mute); }
.ap-contacts { display: grid; gap: 6px; margin-bottom: 18px; }
.ap-contacts a { display: flex; align-items: center; gap: 8px; color: var(--ap-fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.ap-contacts a:hover { color: var(--ap-navy); text-decoration: underline; }
.ap-contacts .ap-svg { color: var(--ap-mute); }
.ap-hours { font-size: 12.5px; color: var(--ap-mute); }
.ap-btn-out { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: #fff; color: var(--ap-fg); border: 1px solid var(--ap-line); }
.ap-btn-out:hover { background: #f3f5f8; color: var(--ap-fg); }
@media (max-width: 480px) { .ap-steps { flex-direction: column; } }
