/* MULTILOS — AUTH CSS */


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: ui-sans-serif, system-ui, sans-serif; background: #0f0620; min-height: 100vh; padding-top: 0; }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e5e7eb; height: 52px; display: flex; align-items: center; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.topbar-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1rem; color: #1f2937; }
.topbar-brand .logo-sq { width: 28px; height: 28px; background: #6c3fff; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; }
.topbar-nav { display: flex; gap: 2px; }
.topbar-nav a { display: flex; align-items: center; gap: 5px; color: #374151; font-size: 0.85rem; font-weight: 500; text-decoration: none; padding: 5px 12px; border-radius: 8px; transition: background 0.15s; }
.topbar-nav a:hover { background: #f3f4f6; }

.page { min-height: 100vh; padding-top: 0; background: linear-gradient(135deg, #1a0932 0%, #2d1272 40%, #3b1fa0 70%, #4c1db4 100%); position: relative; overflow: hidden; }
.page::before { content: ''; position: absolute; top: -200px; right: 10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(120,60,220,0.35) 0%, transparent 65%); pointer-events: none; }
.page::after { content: ''; position: absolute; bottom: 0; left: 5%; width: 500px; height: 400px; background: radial-gradient(circle, rgba(80,20,180,0.3) 0%, transparent 65%); pointer-events: none; }

.page-inner { max-width: 1100px; margin: 0 auto; padding: 28px 40px 56px; display: flex; align-items: flex-start; gap: 60px; position: relative; z-index: 1; }

.left { flex: 1; padding-top: 8px; }
.left-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.left-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.left-logo .left-logo-img { height: 40px; width: auto; }
.left-back { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.6); font-size: 0.85rem; text-decoration: none; margin-left: auto; }
.left-back:hover { color: #fff; }

.page-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 12px; }
.page-title .hl { background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-desc { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.55; margin-bottom: 22px; max-width: 460px; }

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; max-width: 480px; }
.feat-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 14px; transition: background 0.2s; }
.feat-card:hover { background: rgba(255,255,255,0.12); }
.feat-icon { width: 30px; height: 30px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #a78bfa; font-size: 0.9rem; margin-bottom: 8px; }
.feat-card h4 { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.feat-card p { font-size: 0.74rem; color: rgba(255,255,255,0.5); line-height: 1.45; }

.left-foot { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

.right { width: 380px; min-width: 380px; padding-top: 0; }
.form-card { background: rgba(20, 8, 48, 0.9); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 32px 28px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

.tabs { display: flex; background: rgba(255,255,255,0.07); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.tab { flex: 1; padding: 9px; border-radius: 7px; border: none; background: transparent; color: rgba(255,255,255,0.4); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.tab.active { background: #6c3fff; color: #fff; }
.tab:hover:not(.active) { color: rgba(255,255,255,0.7); }

.form-title { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.form-sub { font-size: 0.83rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; line-height: 1.5; }

.benefits { list-style: none; margin-bottom: 22px; display: flex; flex-direction: column; gap: 7px; }
.benefits li { display: flex; align-items: center; gap: 9px; font-size: 0.83rem; color: rgba(255,255,255,0.72); }
.benefits li i { color: #a78bfa; font-size: 0.95rem; flex-shrink: 0; }

.irow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.igroup { margin-bottom: 10px; }
.ilabel { display: block; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.55); margin-bottom: 5px; letter-spacing: 0.02em; }
.ifield { width: 100%; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12); border-radius: 9px; padding: 10px 13px; color: #fff; font-size: 0.88rem; font-family: inherit; outline: none; transition: border-color 0.15s; }
.ifield::placeholder { color: rgba(255,255,255,0.2); }
.ifield:focus { border-color: rgba(139,92,246,0.7); background: rgba(255,255,255,0.1); }

.forgot { text-align: right; margin-bottom: 14px; }
.forgot a { font-size: 0.75rem; color: #a78bfa; text-decoration: none; }

.btn-main { width: 100%; background: #6c3fff; color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 0.92rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-main:hover { background: #5a32d4; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.12); }
.auth-divider span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.35); }

.btn-google { width: 100%; background: rgba(255,255,255,0.92); color: #3c4043; border: 1px solid rgba(255,255,255,0.4); border-radius: 10px; padding: 11px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.btn-google:hover { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.18); }
.btn-google img { width: 18px; height: 18px; }

.switch-text { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.switch-text a { color: #a78bfa; font-weight: 600; text-decoration: none; }
.terms { font-size: 0.7rem; color: rgba(255,255,255,0.3); text-align: center; margin-top: 12px; line-height: 1.5; }
.terms a { color: #a78bfa; text-decoration: none; }

.page-footer { background: #0c0518; padding: 28px 0 20px; position: relative; z-index: 1; }
.page-footer .inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-sq { width: 28px; height: 28px; background: #6c3fff; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer-disclaimer { font-size: 0.72rem; color: rgba(255,255,255,0.25); text-align: center; line-height: 1.6; }

.hidden { display: none; }

@media (max-width: 900px) {
    .left { display: none; }
    .page-inner { padding: 32px 20px 60px; }
    .right { width: 100%; min-width: 0; padding-top: 0; }
    .feat-grid { max-width: 100%; }
}

/* ============================================================
   MULTILOS — STYLE BŁĘDÓW WALIDACJI
   Wklej do webroot/css/multilos-auth.css
   CakePHP automatycznie dodaje klasy .error i .error-message
   ============================================================ */

/* Kontener pola z błędem */
.igroup.error,
.irow > div.error {
    position: relative;
}

/* Input z błędem */
.igroup.error .ifield,
.irow > div.error .ifield {
    background: rgba(248, 113, 113, 0.08) !important;
    border-color: rgba(248, 113, 113, 0.6) !important;
}

/* Komunikat błędu */
.igroup .error-message,
.irow > div .error-message {
    display: flex !important;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #fca5a5;
    line-height: 1.4;
    list-style: none;
    padding: 0;
}

/* Ikona przed komunikatem przez pseudo-element */
.igroup .error-message::before,
.irow > div .error-message::before {
    content: "\F333"; /* bi-exclamation-circle-fill */
    font-family: "bootstrap-icons";
    font-size: 0.82rem;
    flex-shrink: 0;
    line-height: 1;
}
