*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent:       #696cff;
    --accent-dark:  #5457e0;
    --accent-light: #eceeff;
    --text-heading: #2e2e48;
    --text-body:    #566a7f;
    --text-muted:   #a3a4bb;
    --border:       #e9e9f0;
    --radius:       14px;
}

body {
    min-height: 100vh;
    display: flex;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: .875rem;
    background: #f4f5fb;
}

/* ══════════════════════════════════════
   LEFT – Formularz
══════════════════════════════════════ */
.auth-left {
    width: 420px;
    min-width: 380px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 48px 44px;
    min-height: 100vh;
    overflow-y: auto;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 48px;
}
.auth-logo img {
    height: 60px;
    width: auto;
}
.auth-logo-text {
    font-size: .875rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -.02em;
}

.auth-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.auth-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    text-align: center;
}
.auth-subtitle {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-align: center;
}

/* Alert błędu */
.auth-alert-danger {
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    color: #c0392b;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .875rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Formularz */
.auth-form-group { margin-bottom: 18px; }

.auth-form-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.auth-form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.auth-forgot {
    font-size: .875rem;
    color: var(--accent);
    text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }

.auth-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: .875rem;
    color: var(--text-heading);
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.auth-input:focus {
    border-color: var(--accent);
    box-shadow: none;
    /*font-weight: 600;*/
    /*font-size: .92rem;*/
}

.auth-input-wrapper { position: relative; }
.auth-input-wrapper .auth-input { padding-right: 44px; }
.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: .875rem;
    padding: 4px;
    transition: color .15s;
}
.auth-password-toggle:hover { color: var(--accent); }

/* Checkbox */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: var(--text-body);
    cursor: pointer;
    margin-bottom: 22px;
}
.auth-checkbox-group input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

/* Submit */
.auth-submit-btn {
    width: 100%;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .18s, box-shadow .18s;
    box-shadow: 0 4px 14px rgba(105,108,255,.32);
    margin-bottom: 20px;
}
.auth-submit-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(105,108,255,.42);
}

.auth-bottom-link {
    text-align: center;
    font-size: .875rem;
    color: var(--text-muted);
}
.auth-bottom-link a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-bottom-link a:hover { text-decoration: underline; }

/* Footer */
.auth-footer-left {
    margin-top: 32px;
    font-size: .875rem;
    color: var(--text-muted);
    text-align: center;
}
.auth-footer-left a { color: var(--text-muted); text-decoration: none; }
.auth-footer-left a:hover { color: var(--accent); }

/* Demo box */
.auth-demo-box {
    background: var(--accent-light);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .875rem;
    color: var(--text-body);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-demo-box a { color: var(--accent); }

/* ══════════════════════════════════════
   RIGHT – Dekoracyjne tło z changelog
══════════════════════════════════════ */
.auth-right {
    flex: 1;
    background: linear-gradient(135deg, #696cff 0%, #5457e0 40%, #3b3dbf 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Kółka dekoracyjne */
.auth-right::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
}
.auth-right::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.auth-right .circle-1 {
    position: absolute;
    top: 40%; left: 10%;
    width: 180px; height: 180px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.auth-right .circle-2 {
    position: absolute;
    top: 10%; left: 35%;
    width: 100px; height: 100px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.auth-right .circle-3 {
    position: absolute;
    bottom: 20%; right: 10%;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.auth-right .circle-4 {
    position: absolute;
    bottom: 8%; left: 30%;
    width: 60px; height: 60px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.auth-right .circle-5 {
    position: absolute;
    top: 25%; right: 30%;
    width: 140px; height: 140px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.auth-right .circle-6 {
    position: absolute;
    top: 60%; left: 50%;
    width: 80px; height: 80px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

.auth-right-inner { position: relative; z-index: 1; width: 100%; max-width: 480px; }

.auth-right-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
.auth-right-badge i { font-size: .7rem; }

.auth-right-heading {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -.02em;
}
.auth-right-sub {
    font-size: .875rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Changelog */
.auth-changelog { display: flex; flex-direction: column; gap: 6px; width: 100%; }

.changelog-item {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    backdrop-filter: blur(6px);
    transition: background .18s;
}
.changelog-item:hover { background: rgba(255,255,255,.15); }

.changelog-version {
    background: rgba(255,255,255,.2);
    border-radius: 6px;
    padding: 2px 9px;
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
    margin-top: 2px;
    letter-spacing: .04em;
}
.changelog-item.new .changelog-version  { background: rgba(113,221,55,.25); color: #b6ffa0; }
.changelog-item.fix .changelog-version  { background: rgba(255,171,0,.2);  color: #ffe5a0; }
.changelog-item.imp .changelog-version  { background: rgba(3,195,236,.2);  color: #a0f0ff; }

.changelog-body {}
.changelog-title {
    font-size: .875rem; font-weight: 600; margin-bottom: 2px; }
.changelog-desc  {
    font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.5; }

/* Statystyki na dole */
.auth-right-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
}
.auth-stat-value { font-size: 1.5rem; font-weight: 800; }
.auth-stat-label {
    font-size: .875rem; color: rgba(255,255,255,.6); margin-top: 1px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .auth-right { display: none; }
    .auth-left  { width: 100%; min-width: 0; min-height: 100vh; }
}
@media (max-width: 480px) {
    .auth-left { padding: 32px 24px; }
}
