/* Logowanie do panelu - resources/views/auth/login.blade.php
   Ten arkusz obsluguje takze resources/views/suspended.blade.php,
   dlatego logo jest ostylowane w dwoch wariantach: nad karta (na ciemnym
   tle) oraz wewnatrz karty (stary uklad, ktorego suspended nadal uzywa). */

:root {
    --a-accent: #0f7c8a;
    --a-accent-hover: #0c6a76;
    --a-dark: #0d3b45;
    --a-title: #1d2f3c;
    --a-muted: #5c7383;
    --a-divider: #eef1f5;
    --a-input-border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* JASNE tlo = wejscie do panelu firmy. Ciemny granat jest zarezerwowany
       dla wejscia do rejestratora RCP (/wejscie), zeby uzytkownik od razu
       widzial, w ktorym z dwoch swiatow jest. */
    background: radial-gradient(900px 300px at 50% -200px, rgba(12, 172, 188, 0.25), transparent), #eef3f7;
    color: var(--a-title);
    font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: min(460px, 100%);
}

/* ---------- logo ---------- */

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* logo nad karta - jasne tlo strony */
.auth-stack > .auth-logo {
    color: var(--a-title);
}

/* wariant wewnatrz karty - biale tlo (uzywa go suspended.blade.php) */
.card .auth-logo {
    color: var(--a-title);
}

/* ---------- karta ---------- */

.card {
    width: 100%;
    background: #fff;
    border: 1px solid #e6ebef;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 26px;
}

.head {
    margin-bottom: 22px;
}

.head .auth-eyebrow {
    margin: 0 0 6px;
    color: var(--a-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.head h1 {
    margin: 0;
    color: var(--a-title);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.head p {
    margin: 8px 0 0;
    color: var(--a-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- formularz ---------- */

form label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

form input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    height: 44px;
    margin-bottom: 16px;
    padding: 0 13px;
    border: 1px solid var(--a-input-border);
    border-radius: 10px;
    background: #fff;
    color: var(--a-title);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form input::placeholder {
    color: #a3aeba;
}

form input:not([type="checkbox"]):focus {
    border-color: var(--a-accent);
    box-shadow: 0 0 0 3px rgba(15, 124, 138, 0.14);
}

/* pole hasla z przyciskiem "Pokaz" */
.auth-password {
    position: relative;
    margin-bottom: 16px;
}

.auth-password input {
    margin-bottom: 0;
    padding-right: 84px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--a-input-border);
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.auth-password-toggle:hover {
    background: #f1f5f9;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.remember input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--a-accent);
    cursor: pointer;
}

.btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--a-accent);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn:hover {
    background: var(--a-accent-hover);
}

.btn:focus-visible,
.auth-password-toggle:focus-visible {
    outline: 2px solid var(--a-accent);
    outline-offset: 2px;
}

/* ---------- linki i stopka karty ---------- */

.row {
    margin-top: 16px;
    text-align: center;
    color: var(--a-muted);
    font-size: 14px;
}

.row a {
    color: var(--a-accent);
    font-weight: 600;
    text-decoration: none;
}

.row a:hover {
    text-decoration: underline;
}

.auth-alt-entry {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--a-divider);
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.auth-alt-entry span {
    color: var(--a-muted);
    font-size: 13px;
}

.auth-alt-entry a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border: 1px solid var(--a-input-border);
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.auth-alt-entry a:hover {
    background: #f1f5f9;
}

/* wiersz pod karta, na jasnym tle strony */
.auth-register-row {
    margin-top: 0;
    color: #5c7383;
}

.auth-register-row a {
    /* na tle strony (#eef3f7), nie na bialej karcie - potrzebny
       ciemniejszy odcien, --a-accent dawal tam 4,4:1 */
    color: var(--a-accent-hover);
}

/* ---------- komunikaty ---------- */

.alert,
.errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.alert {
    border: 1px solid #bfe3de;
    background: #eef8f7;
    color: #0f6b63;
}

.errors {
    border: 1px solid #f2c9d2;
    background: #fdf2f4;
    color: #a83250;
}

.errors ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 480px) {
    body {
        padding: 20px 14px;
    }

    .card {
        padding: 20px;
    }
}
