/* ══════════════════════════════════════════════════════════════
   INTEGRACJASMS.PL — AUTH CSS v3
   Split layout: lewa strona (brand) + prawa strona (formularz)
══════════════════════════════════════════════════════════════ */

:root {
    --bg:          #0c0c0e;
    --bg-2:        #141416;
    --bg-3:        #1c1c1f;
    --bg-4:        #242428;
    --border:      rgba(255,255,255,0.06);
    --border-med:  rgba(255,255,255,0.11);
    --text:        #ececf1;
    --text-2:      #8a8a96;
    --text-3:      #52525c;
    --accent:      #7c6af7;
    --accent-soft: rgba(124,106,247,0.12);
    --accent-glow: rgba(124,106,247,0.22);
    --green:       #22c55e;
    --danger:      #ef4444;
    --font:        'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    --r:           10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
}

/* ── SPLIT LAYOUT ──────────────────────────────────────────── */
.auth-split { display: flex; width: 100%; min-height: 100vh; }

/* LEWA — brand */
.auth-brand {
    width: 400px;
    flex-shrink: 0;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}
.auth-brand::before {
    content: '';
    position: absolute; top: -100px; left: -60px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(124,106,247,0.13) 0%, transparent 70%);
    pointer-events: none;
}
.auth-brand::after {
    content: '';
    position: absolute; bottom: -60px; right: -40px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-logo { margin-bottom: 44px; position: relative; z-index: 1; }
.auth-brand-logo .site-logo { width: 190px; height: auto; display: block; }

.auth-brand-headline {
    font-size: 24px; font-weight: 700; color: var(--text);
    letter-spacing: -.03em; line-height: 1.3;
    margin-bottom: 10px; position: relative; z-index: 1;
}
.auth-brand-sub {
    font-size: 13.5px; color: var(--text-2); line-height: 1.7;
    margin-bottom: 36px; position: relative; z-index: 1;
}

/* Feature list */
.auth-features { list-style: none; margin-bottom: 40px; position: relative; z-index: 1; }
.auth-features li {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: 13px; color: var(--text-2);
    margin-bottom: 14px; line-height: 1.5;
}
.afi {
    width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0; margin-top: 1px;
}
.afi-p { background: var(--accent-soft); color: var(--accent); }
.afi-g { background: rgba(34,197,94,.12);  color: #4ade80; }
.afi-a { background: rgba(245,158,11,.12); color: #fbbf24; }
.afi-b { background: rgba(56,189,248,.12); color: #38bdf8; }
.auth-features strong { color: var(--text); display: block; font-weight: 600; font-size: 13px; }

/* Stats */
.auth-stats {
    margin-top: auto; display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; position: relative; z-index: 1;
}
.auth-stat {
    background: var(--bg-3); border: 1px solid var(--border);
    border-radius: var(--r); padding: 12px 13px;
}
.auth-stat-val  { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.02em; line-height: 1; margin-bottom: 3px; }
.auth-stat-lbl  { font-size: 11px; color: var(--text-3); }

/* PRAWA — form */
.auth-form-side {
    flex: 1; display: flex; align-items: center;
    justify-content: center; padding: 40px 24px; overflow-y: auto;
}
.auth-form-wrap { width: 100%; max-width: 400px; }

.auth-form-header { margin-bottom: 26px; }
.auth-form-title  { font-size: 21px; font-weight: 700; color: var(--text); letter-spacing: -.03em; margin-bottom: 5px; }
.auth-form-sub    { font-size: 13.5px; color: var(--text-2); }

/* Form elements */
.form-group  { margin-bottom: 14px; }
.form-label  { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-label-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px;
}
.form-label-row a { font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 400; }
.form-label-row a:hover { text-decoration: underline; }

.form-control {
    width: 100%; background: var(--bg-3); border: 1px solid var(--border-med);
    border-radius: 9px; padding: 10px 13px;
    font-family: var(--font); font-size: 13.5px; color: var(--text);
    transition: border-color .15s, box-shadow .15s, background .15s; outline: none;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-4);
}
.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Submit */
.btn-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px 20px;
    background: var(--accent); color: #fff; border: none; border-radius: 9px;
    font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
    margin-top: 6px;
    transition: opacity .15s, box-shadow .15s, transform .1s;
    letter-spacing: -.01em;
}
.btn-submit:hover  { opacity: .88; box-shadow: 0 4px 24px var(--accent-glow); }
.btn-submit:active { transform: scale(.99); }

/* Divider */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0; font-size: 12px; color: var(--text-3);
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* Footer link */
.auth-footer-link { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 18px; }
.auth-footer-link a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-footer-link a:hover { text-decoration: underline; }

/* Alerts */
.alert {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 10px 13px; border-radius: var(--r);
    font-size: 13px; margin-bottom: 16px; border: 1px solid;
}
.alert i { flex-shrink: 0; margin-top: 1px; font-size: 14px; }
.alert-danger  { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.2);  color: #f87171; }
.alert-success { background: rgba(34,197,94,.08);  border-color: rgba(34,197,94,.2);  color: #4ade80; }
.alert-warning { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.2); color: #fbbf24; }
.alert-info    { background: rgba(124,106,247,.08);border-color: rgba(124,106,247,.2);color: #a78bf5; }

/* Password strength */
.pwd-strength { margin-top: 6px; display: flex; gap: 4px; align-items: center; }
.pwd-bar      { flex: 1; height: 3px; border-radius: 2px; background: var(--bg-4); transition: background .3s; }
.pwd-label    { font-size: 11px; color: var(--text-3); width: 60px; text-align: right; flex-shrink: 0; transition: color .3s; }

/* Responsive */
@media (max-width: 860px) {
    .auth-brand { display: none; }
    .auth-form-side { align-items: flex-start; padding: 32px 20px; }
    /* Logo na mobile — pokazuje się w formularzu */
    .auth-mobile-logo { display: flex; margin-bottom: 28px; }
    .auth-mobile-logo .site-logo { width: 160px; height: auto; }
}
.auth-mobile-logo { display: none; }

@media (max-width: 440px) {
    .form-row { grid-template-columns: 1fr; }
    .auth-form-side { padding: 20px 16px; }
}
