/* ===== CZCIONKA POPPINS ===== */

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Zapobiega niewidzialnemu tekstowi podczas ładowania strony */
}

* {
    font-family: "Poppins", sans-serif !important;
}

.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after {
    font-family: "Poppins", sans-serif !important;
}

.auth-page input,
.auth-page button {
    font-family: "Poppins", sans-serif !important;
}

/* ===== STRONA LOGOWANIA ===== */

.auth-page {
    min-height: 65vh;
    padding: 64px 20px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            ellipse at 15% 15%,
            rgba(106, 61, 240, 0.08),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 85% 85%,
            rgba(106, 61, 240, 0.06),
            transparent 40%
        );
}

/* Karta */

.auth-box {
    width: 100%;
    max-width: 430px;
    padding: 38px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #eeeaf8;
    border-radius: 22px;

    box-shadow: 0 18px 60px rgba(40, 25, 85, 0.08);
}

/* Ikona */

.auth-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    background: linear-gradient(135deg, #8057ff, #6035df);

    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;

    box-shadow: 0 6px 16px rgba(106, 61, 240, 0.2);
}

/* Nagłówek i opis */

.auth-box h1 {
    margin: 0 0 10px;

    color: #201a35;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.auth-description {
    margin: 0 0 28px;

    color: #777187;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* Formularz */

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #39314f;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    box-sizing: border-box;

    border: 1px solid #e5e0ef;
    border-radius: 10px;
    outline: none;

    background: #fff;
    color: #201a35;

    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: #aaa5b8;
}

.form-group input:hover {
    border-color: #c9baf5;
}

.form-group input:focus {
    border-color: #8057ff;
    box-shadow: 0 0 0 4px rgba(106, 61, 240, 0.1);
}

/* Przycisk logowania */

.auth-submit {
    width: 100%;
    min-height: 49px;
    margin-top: 4px;
    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: none;
    border-radius: 10px;

    background: #6a3df0;
    color: #fff;

    font-family: 'Poppins', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.auth-submit:hover {
    background: #5730d0;
    box-shadow: 0 6px 18px rgba(106, 61, 240, 0.23);
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit span {
    font-size: 1.2rem;
}

/* Komunikat błędu */

.error {
    margin-bottom: 22px;
    padding: 12px 14px;

    border: 1px solid #ffd5d5;
    border-radius: 10px;

    background: #fff4f4;
    color: #b42318;

    font-size: 0.9rem;
    line-height: 1.5;
}

/* Link do rejestracji */

.auth-bottom {
    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid #eeeaf5;

    color: #777187;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
}

.auth-bottom a {
    color: #6a3df0;
    font-weight: 700;
    text-decoration: none;
}

.auth-bottom a:hover {
    color: #4923bd;
    text-decoration: underline;
}

/* Telefon */

@media (max-width: 480px) {
    .auth-page {
        min-height: auto;
        padding: 36px 16px;
    }

    .auth-box {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .auth-box h1 {
        font-size: 1.7rem;
    }
}

/* Ograniczenie animacji */

@media (prefers-reduced-motion: reduce) {
    .form-group input,
    .auth-submit {
        transition: none;
    }
}

/* ===== REJESTRACJA ===== */

.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after {
    font-family: "Poppins", sans-serif !important;
}

.auth-page {
    padding-top: 48px;
    padding-bottom: 48px;
}

.auth-box {
    max-width: 460px;
}

.captcha-container {
    width: 100%;
    overflow-x: auto;
}

.captcha-container:empty {
    display: none;
}

.auth-submit {
    font-family: "Poppins", sans-serif;
}

.auth-box input,
.auth-box button {
    font-family: "Poppins", sans-serif;
}