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

body {
    background: #0b0b0f;
    color: #f0f0f5;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-home-link {
    position: fixed;
    top: 20px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f0f5;
    background: #16161d;
    border: 1px solid #32324a;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.login-home-link:hover {
    background: #1f1f2a;
    border-color: #e8b000;
    color: #e8b000;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 24px;
}

.login-box {
    background: #111116;
    border: 1px solid #1c1c26;
    border-radius: 16px;
    padding: 40px 36px;
}

.login-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    color: #f0f0f5;
}

.login-dot { color: #e8b000; }

.login-subtitle {
    color: #8b8b9e;
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.login-blad {
    background: rgba(239,68,68,0.10);
    border: 1px solid rgba(239,68,68,0.25);
    color: #ef4444;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.login-group {
    margin-bottom: 18px;
}

.login-group label {
    display: block;
    font-size: 0.8rem;
    color: #8b8b9e;
    margin-bottom: 6px;
    font-weight: 500;
}

.login-input {
    width: 100%;
    background: #0b0b0f;
    border: 1px solid #1c1c26;
    color: #f0f0f5;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
}

.login-input:focus { border-color: #e8b000; }

.login-btn {
    width: 100%;
    padding: 12px;
    background: #e8b000;
    color: #0b0b0f;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.15s;
}

.login-btn:hover { opacity: 0.88; }

.login-lub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: #5c5c6e;
    font-size: 0.78rem;
}

.login-lub::before,
.login-lub::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1c1c26;
}

.login-btn-gosc {
    background: transparent;
    color: #f0f0f5;
    border: 1px solid #2a2a38;
    margin-top: 0;
}

.login-btn-gosc:hover {
    opacity: 1;
    border-color: #e8b000;
}

.login-gosc-info {
    color: #8b8b9e;
    font-size: 0.78rem;
    line-height: 1.5;
    margin-top: 12px;
    text-align: center;
}

.gosc-lista {
    list-style: none;
    margin-bottom: 22px;
}

.gosc-lista li {
    color: #c4c4d0;
    font-size: 0.85rem;
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}

.gosc-lista li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: #e8b000;
    font-weight: 800;
}

.login-link-drugi {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #8b8b9e;
    text-decoration: none;
}

.login-link-drugi:hover { color: #f0f0f5; }

.login-btn-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

.login-gosc-stan {
    background: rgba(232, 176, 0, 0.08);
    border: 1px solid rgba(232, 176, 0, 0.30);
    color: #c4c4d0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.login-gosc-stan a {
    color: #e8b000;
    font-weight: 600;
}

.login-wrapper:has(.login-box-szeroki) { max-width: 480px; }

.login-ok {
    background: rgba(34,197,94,0.10);
    border: 1px solid rgba(34,197,94,0.25);
    color: #22c55e;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.login-tekst {
    color: #c4c4d4;
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0 0 14px;
}

.login-qr {
    display: block;
    width: 220px;
    max-width: 100%;
    margin: 4px auto 18px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
}

.login-sekret {
    display: block;
    background: #0b0b0f;
    border: 1px solid #1c1c26;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    color: #e8b000;
    font-size: 0.9rem;
    letter-spacing: 1px;
    word-break: break-all;
}

.login-sekcja { margin-top: 22px; }

.login-input-kod {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-align: center;
}

.login-kody {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.login-kody li {
    background: #0b0b0f;
    border: 1px solid #1c1c26;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    color: #f0f0f5;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.95rem;
}

.login-btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5865f2;
    color: #ffffff;
    text-decoration: none;
}

.login-btn-discord svg {
    width: 22px;
    height: 22px;
    flex: none;
}

.login-btn-discord.login-btn-drugi {
    background: transparent;
    color: #f0f0f5;
    border: 1px solid #5865f2;
}

.login-btn-discord.login-btn-drugi:hover {
    opacity: 1;
    background: rgba(88, 101, 242, 0.12);
}

.login-haslo {
    margin-top: 18px;
    border-top: 1px solid #1c1c26;
    padding-top: 14px;
}

.login-haslo summary {
    cursor: pointer;
    color: #8b8b9e;
    font-size: 0.85rem;
    text-align: center;
    list-style: none;
    margin-bottom: 4px;
}

.login-haslo summary::-webkit-details-marker { display: none; }

.login-haslo summary:hover { color: #f0f0f5; }

.login-haslo[open] summary { margin-bottom: 18px; }

.konto-karta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0b0b0f;
    border: 1px solid #1c1c26;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.konto-awatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: none;
    background: #1c1c26;
}

.konto-karta-tekst {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.konto-karta-tekst strong {
    color: #f0f0f5;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.konto-karta-tekst span {
    color: #8b8b9e;
    font-size: 0.78rem;
}

.konto-sekcja {
    margin-top: 26px;
}

.konto-sekcja h2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8b8b9e;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.konto-wiersz {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #c4c4d4;
    font-size: 0.85rem;
    padding: 6px 0;
}

.konto-wiersz strong { color: #f0f0f5; }

@media (max-width: 640px) {
    body {
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 32px;
    }

    .login-home-link {
        position: static;
        order: -1;
        margin: 16px 16px 0;
        align-self: flex-start;
    }

    .login-wrapper { padding: 16px; }

    .login-box { padding: 28px 22px; }
}

