/*
 * Moduł kont CK-ZAJĘCIA.
 * Zdjęcie: assets/images/zameczek.jpg
 * Logo:    assets/images/zameczek-logo.jpg
 * Podmiana logo: AUTH_LOGO_SRC w public/auth_visual.php
 */

:root {
    --auth-ink: #1c1b19;
    --auth-muted: #5e5a54;
    --auth-line: #d7d1c8;
    --auth-paper: #f6f4f1;
    --auth-white: #fffcf8;
    --auth-graphite: #2c2a26;
    --auth-graphite-hover: #1a1917;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    color: var(--auth-ink);
    background: var(--auth-paper);
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.auth-layout {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.auth-visual {
    position: relative;
    flex: 0 0 55%;
    min-height: 100vh;
}

.auth-photo-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #cfc6ba;
}

.auth-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(32, 26, 20, 0.2);
    pointer-events: none;
}

.auth-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}

.auth-brand {
    position: absolute;
    left: 36px;
    bottom: 36px;
    z-index: 1;
    max-width: 280px;
}

.auth-logo {
    display: block;
    width: 148px;
    height: auto;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(24, 18, 12, 0.16);
}

.auth-kicker {
    margin: 14px 0 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.auth-caption {
    margin: 6px 0 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.auth-panel {
    display: flex;
    flex: 1 1 45%;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: 48px 40px;
    background: var(--auth-paper);
}

.auth-card {
    width: min(420px, 100%);
    margin: auto;
}

.auth-card h1 {
    margin: 0 0 24px;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0 0 16px;
    padding: 0 14px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--auth-white);
    color: var(--auth-ink);
    font: inherit;
    font-size: 16px;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card .consent input:focus-visible,
.auth-card button:focus-visible,
.auth-links a:focus-visible {
    outline: 2px solid var(--auth-graphite);
    outline-offset: 2px;
    border-color: var(--auth-graphite);
}

.auth-card .consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-card .consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: none;
}

.auth-card .consent span {
    min-width: 0;
}

.auth-card .consent a {
    color: var(--auth-graphite);
    font-weight: 600;
}

.auth-card-document {
    width: min(720px, 100%);
}

.auth-card-document h1 {
    font-size: 28px;
}

.auth-card-document h2 {
    margin: 22px 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.auth-card-document p,
.auth-card-document li {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.55;
}

.auth-card-document ul {
    margin: 0 0 12px;
    padding-left: 1.2em;
}

.auth-draft {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #e4d2cb;
    border-radius: 8px;
    background: #f8f3f1;
    color: #5c332c;
    font-size: 15px;
    line-height: 1.45;
}

.auth-card button {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--auth-graphite);
    color: #f7f4ef;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.auth-card button:hover {
    background: var(--auth-graphite-hover);
}

.auth-error,
.auth-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.45;
}

.auth-error {
    border: 1px solid #e4d2cb;
    background: #f8f3f1;
    color: #5c332c;
}

.auth-message {
    border: 1px solid #d0d9ce;
    background: #f3f6f2;
    color: #243628;
}

.auth-error p,
.auth-message p {
    margin: 0 0 8px;
}

.auth-error p:last-child,
.auth-message p:last-child {
    margin-bottom: 0;
}

.auth-links {
    margin: 22px 0 0;
    color: var(--auth-muted);
    font-size: 15px;
    text-align: center;
}

.auth-links a {
    color: var(--auth-graphite);
    font-weight: 600;
}

.auth-links-note {
    display: block;
    margin-top: 14px;
}

.auth-links-note a {
    display: block;
    margin-top: 6px;
}

.auth-privacy-note {
    margin: 0 0 12px;
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.45;
}

.auth-privacy-note a {
    color: var(--auth-graphite);
    font-weight: 600;
}

@media (max-width: 960px) {
    .auth-layout {
        flex-direction: column;
    }

    .auth-visual {
        flex: none;
        min-height: 0;
    }

    .auth-photo-wrap {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .auth-photo-wrap::after {
        height: 210px;
        bottom: auto;
    }

    .auth-photo {
        height: 210px;
        object-position: center 32%;
    }

    .auth-brand {
        position: absolute;
        left: 20px;
        bottom: 20px;
        z-index: 1;
        padding: 0;
    }

    .auth-logo {
        width: 68px;
    }

    .auth-kicker,
    .auth-caption {
        display: none;
    }

    .auth-panel {
        min-height: 0;
        padding: 20px 20px 32px;
    }

    .auth-card h1 {
        font-size: 28px;
    }
}
