/*
 * Közös auth-oldal stílus (Login + Register) — Self Made Up brand split-kártya.
 * Globális (nem scoped), hogy mindkét oldal ugyanazt használja (egy forrás).
 * Téma-adaptív: Radzen --rz-* változók (light/dark) + fix brand-zöld accentek.
 */

.auth-page {
    width: 100%;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-card {
    width: min(980px, 96vw);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border-radius: 22px;
    overflow: hidden;
    background: var(--rz-card-background-color, #fff);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

/* ===================== Brand hero ===================== */
.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    background:
        radial-gradient(1100px 650px at 78% 12%, rgba(34, 197, 94, .16), transparent 60%),
        color-mix(in srgb, var(--rz-base-background-color, #0b0f0c) 90%, #0d9488 10%);
}

.auth-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}

.auth-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--rz-text-color, #0f1a12);
}

.auth-hero-copy {
    position: relative;
    z-index: 2;
}

.auth-hero-copy h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--rz-text-color, #0f1a12);
}

.auth-hero-copy h1 .accent {
    background: linear-gradient(135deg, #A3E635 0%, #22C55E 45%, #0D9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-hero-copy p {
    margin: 0;
    max-width: 40ch;
    font-size: 15px;
    line-height: 1.5;
    color: var(--rz-text-secondary-color, #5c6b61);
}

.auth-features {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--rz-text-color, #0f1a12);
}

.auth-features .ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, .35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-features .ic .rz-icon {
    color: #22C55E;
    font-size: 18px;
}

/* ===================== Form panel ===================== */
.auth-form-panel {
    background: var(--rz-card-background-color, #fff);
    padding: 46px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-panel h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: var(--rz-text-color, #0f1a12);
}

.auth-form-sub {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--rz-text-secondary-color, #5c6b61);
}

.auth-field {
    margin-bottom: 16px;
}

.auth-forgot {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 18px;
}

.auth-forgot a {
    color: #22C55E;
    font-size: 13px;
    text-decoration: none;
}

.auth-subscribe {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 20px;
    font-size: 13px;
    color: var(--rz-text-secondary-color, #5c6b61);
}

/* brand zöld gradiens pill submit gomb — specificitás-biztos a Radzen ellen */
.auth-form-panel .auth-submit.rz-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #A3E635 0%, #22C55E 45%, #0D9488 100%);
    color: #06210F;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(34, 197, 94, .30);
}

.auth-form-panel .auth-submit.rz-button:hover:not(:disabled) {
    filter: brightness(1.05);
}

.auth-form-panel .auth-submit.rz-button:disabled {
    opacity: .65;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: 12px;
    color: var(--rz-text-secondary-color, #5c6b61);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rz-border-color, rgba(0, 0, 0, .12));
}

.auth-register {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: var(--rz-text-secondary-color, #5c6b61);
}

.auth-register a {
    color: #22C55E;
    font-weight: 600;
    text-decoration: none;
}

/* ===================== Egyszerű, középre zárt kártya (pl. elfelejtett jelszó) =====================
   Hero-szerű tintelt felület, hogy ne olvadjon bele a sötét háttérbe. */
.auth-simple {
    width: 100%;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-simple-card {
    width: min(460px, 94vw);
    padding: 42px 38px;
    border-radius: 22px;
    text-align: center;
    color: var(--rz-text-color, #f4f8f4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    background:
        radial-gradient(700px 420px at 80% 0%, rgba(34, 197, 94, .16), transparent 60%),
        color-mix(in srgb, var(--rz-base-background-color, #0b0f0c) 88%, #0d9488 12%);
}

/* ===================== Reszponzív ===================== */
@media (max-width: 760px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-simple-card {
        padding: 32px 24px;
    }

    .auth-hero {
        padding: 32px 28px;
        gap: 18px;
    }

    .auth-form-panel {
        padding: 32px 28px;
    }
}
