:root {
    --pl: #2A4BFF;
    --pl-dark: #1E36C4;
    --ink: #10131a;
    --muted: #545b6b;
    --line: #e2e5ea;
    --bg: #f3f4f7;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

.pl-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(360px, .95fr);
}

.pl-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    padding: 40px 48px 44px;
    color: #fff;
    background: #10131a;
}

.pl-orbit {
    position: absolute;
    right: -120px;
    top: -140px;
    width: 560px;
    height: 560px;
    pointer-events: none;
}

.pl-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    text-decoration: none;
}

.pl-brand img {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    object-fit: cover;
    background: #fff;
}

.pl-brand span {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #fff;
}

.pl-aside-copy { position: relative; z-index: 1; max-width: 440px; }

.pl-aside-copy h2 {
    margin: 0 0 12px;
    font-size: 2.7rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.035em;
    color: #fff;
}

.pl-aside-copy p {
    margin: 0;
    max-width: 380px;
    color: #aab1c0;
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 500;
}

.pl-points {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pl-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: .98rem;
}

.pl-points li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5b78ff;
    box-shadow: 0 0 0 5px rgba(91, 120, 255, .18);
}

.pl-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: var(--bg);
}

.pl-panel { width: 100%; max-width: 420px; }

.pl-kicker {
    margin: 0 0 8px;
    color: var(--pl);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pl-title {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
}

.pl-lead {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 500;
}

.pl-label {
    display: block;
    margin-bottom: 7px;
    font-size: .84rem;
    font-weight: 600;
    color: #243049;
}

.pl-field { margin-bottom: 16px; }

.pl-input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pl-input:hover { border-color: #b7c3d8; }

.pl-input:focus {
    border-color: var(--pl);
    box-shadow: 0 0 0 3px rgba(42, 75, 255, .16);
}

.pl-input.is-invalid { border-color: #dc3545; }

.pl-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, .12); }

.pl-pass { position: relative; }

.pl-input-pass { padding-right: 48px; }

.pl-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 50px;
    border: 0;
    background: transparent;
    color: #8b98ad;
    cursor: pointer;
}

.pl-eye:hover,
.pl-eye:focus-visible { color: var(--pl); outline: none; }

.pl-error {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: .8rem;
    font-weight: 600;
}

.pl-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

.pl-link {
    color: var(--pl);
    font-weight: 600;
    font-size: .94rem;
    text-decoration: none;
}

.pl-link:hover { color: var(--pl-dark); }

.pl-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--pl);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
}

.pl-btn:hover,
.pl-btn:focus { background: var(--pl-dark); color: #fff; }

.pl-back { text-align: center; margin-top: 16px; }

.pl-note {
    margin: 0 0 20px;
    color: #3d4b63;
    font-size: .98rem;
    line-height: 1.55;
    font-weight: 500;
}

.pl-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eefbf3;
    border: 1px solid #b7ebc9;
    color: #166534;
    font-size: .9rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .pl-auth { display: block; }
    .pl-aside { gap: 0; min-height: 0; padding: 18px 20px; }
    .pl-orbit,
    .pl-aside-copy,
    .pl-points { display: none !important; }
    .pl-brand img { width: 40px; height: 40px; border-radius: 12px; }
    .pl-brand span { font-size: 1.2rem; }
    .pl-main { padding: 28px 16px 40px; }
    .pl-title { font-size: 1.7rem; }
}
