:root {
    --card: #ffffff;
    --accent: #d4af37;
    --accent-strong: #6a4e1d;
    --accent-hover: #8d5c2d;
    --text: #3c3c3c;
    --muted: #7a6f63;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7f3f0 0%, #efe6d6 100%);
    color: var(--text);
}

/* Jedna spójna karta: wizualizacja + formularz jako dwie połowy jednego obiektu. */
.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(106, 78, 29, 0.22);
    background-color: var(--card);
}

/* ===== Lewa połowa: wizualizacja kamertonu ===== */
.auth-visual {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 30% 25%, #8d6a2e 0%, #6a4e1d 45%, #4a3512 100%);

    /* Aby użyć prawdziwego zdjęcia kamertonu zamiast ilustracji SVG: wgraj plik
       do /assets/img/, odkomentuj poniższe i usuń <svg class="tuning-fork"> z
       login.php.
    background-image: url('/assets/img/kamerton.jpg');
    background-size: cover;
    background-position: center; */
}

/* delikatny połysk w rogu */
.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 82%, rgba(212, 175, 55, 0.25), transparent 60%);
}

.tuning-fork {
    position: relative;
    z-index: 1;
    width: 45%;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

/* ===== Prawa połowa: formularz ===== */
.auth-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    background-color: var(--card);
}

.login-card {
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff8e1;
    border: 2px solid var(--accent);
    color: var(--accent-strong);
    font-size: 24px;
}

.login-card h1 {
    color: var(--accent-strong);
    font-size: 28px;
    margin: 0;
}

.lead {
    color: var(--accent-strong);
    font-weight: 700;
    margin: 16px 0 4px;
}

.desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 22px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    font-size: 15px;
    font-family: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.login-form button {
    margin-top: 4px;
    padding: 13px;
    background-color: var(--accent-strong);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.login-form button:hover {
    background-color: var(--accent-hover);
}

.login-form button:active {
    transform: scale(0.98);
}

.error {
    color: #b3261e;
    background-color: #fce8e6;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    margin: 0 0 16px;
}

/* ===== Mobile: karta układa się pionowo, wizualizacja jako pasek u góry ===== */
@media (max-width: 680px) {
    body {
        padding: 12px;
    }
    .auth-wrapper {
        flex-direction: column;
        min-height: 0;
        max-width: 380px;
    }
    .auth-visual {
        flex: none;
        min-height: 150px;
    }
    .tuning-fork {
        max-width: 110px;
    }
    .auth-panel {
        padding: 32px 28px;
    }
}
