/* =========================================================
   GERZSONTIPP – LOGIN ÉS REGISZTRÁCIÓ
   ========================================================= */

:root {
    --auth-green: #00ff87;
    --auth-green-dark: #00c96b;
    --auth-purple: #37003c;
    --auth-purple-light: #6d1b74;
    --auth-background: #08000d;
    --auth-card: rgba(20, 8, 27, 0.88);
    --auth-card-light: rgba(255, 255, 255, 0.055);
    --auth-border: rgba(255, 255, 255, 0.1);
    --auth-text: #ffffff;
    --auth-muted: #b9aebe;
    --auth-danger: #ff6174;
}


/* =========================================================
   TELJES OLDAL
   ========================================================= */

.auth-page {
    position: relative;
    min-height: calc(100vh - 90px);
    padding: 70px 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(96, 0, 150, 0.3),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 28%,
            rgba(190, 0, 100, 0.2),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #0a0010 0%,
            #100016 46%,
            #1a0019 100%
        );
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 72px 72px;
}

.auth-page::after {
    content: "";
    position: absolute;
    top: 12%;
    right: -170px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(0, 255, 135, 0.08);
    filter: blur(90px);
}

.auth-page-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
    align-items: center;
    gap: 80px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   BAL OLDALI TARTALOM
   ========================================================= */

.auth-side-content {
    max-width: 650px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 34px;
    color: var(--auth-text);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-brand:hover {
    color: var(--auth-text);
}

.auth-brand strong {
    color: var(--auth-green);
}

.auth-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 255, 135, 0.28);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(0, 255, 135, 0.17),
            rgba(98, 35, 185, 0.22)
        );
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.auth-side-content .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--auth-green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.auth-side-content .section-label::before {
    content: "";
    width: 25px;
    height: 2px;
    border-radius: 10px;
    background: var(--auth-green);
}

.auth-side-content h1 {
    max-width: 650px;
    margin: 0 0 18px;
    color: var(--auth-text);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.auth-side-content > p {
    max-width: 585px;
    margin: 0 0 32px;
    color: var(--auth-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}


/* =========================================================
   ELŐNYÖK
   ========================================================= */

.auth-benefits {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.auth-benefit:hover {
    transform: translateX(6px);
    border-color: rgba(0, 255, 135, 0.25);
    background: rgba(0, 255, 135, 0.055);
}

.auth-benefit > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(0, 255, 135, 0.25);
    border-radius: 12px;
    background: rgba(0, 255, 135, 0.1);
    color: var(--auth-green);
    font-size: 0.82rem;
    font-weight: 900;
}

.auth-benefit strong {
    display: block;
    margin-bottom: 4px;
    color: var(--auth-text);
    font-size: 0.98rem;
}

.auth-benefit p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}


/* =========================================================
   AKTUÁLIS TIPP KÁRTYA – LOGIN
   ========================================================= */

.auth-example-card {
    overflow: hidden;
    max-width: 590px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.025)
        );
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(15px);
}

.auth-example-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-example-top span {
    color: var(--auth-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.auth-example-top strong {
    padding: 6px 10px;
    border: 1px solid rgba(0, 255, 135, 0.25);
    border-radius: 999px;
    background: rgba(0, 255, 135, 0.11);
    color: var(--auth-green);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.auth-example-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 23px 24px;
}

.auth-example-match > div:not(.auth-example-score) {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--auth-text);
}

.auth-example-match > div:last-child {
    justify-content: flex-end;
}

.auth-example-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: linear-gradient(145deg, #d71920, #841319);
    color: #ffffff;
    font-size: 0.67rem;
    font-weight: 900;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.25);
}

.auth-example-away {
    background: linear-gradient(145deg, #e31b23, #8e1116);
}

.auth-example-score {
    min-width: 78px;
    padding: 10px 13px;
    border: 1px solid rgba(0, 255, 135, 0.23);
    border-radius: 14px;
    background: rgba(0, 255, 135, 0.09);
    color: var(--auth-text);
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}


/* =========================================================
   PONTOZÁSI KÁRTYA – REGISZTRÁCIÓ
   ========================================================= */

.auth-scoring-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    max-width: 620px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(14px);
}

.auth-scoring-preview > div {
    position: relative;
    display: flex;
    min-height: 112px;
    padding: 20px 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    text-align: center;
}

.auth-scoring-preview > div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 0;
    bottom: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-scoring-preview strong {
    color: var(--auth-green);
    font-size: 1.9rem;
    font-weight: 900;
}

.auth-scoring-preview span {
    color: var(--auth-muted);
    font-size: 0.79rem;
    line-height: 1.4;
}


/* =========================================================
   JOBB OLDALI ŰRLAPKÁRTYA
   ========================================================= */

.auth-form-column {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.auth-form-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    padding: 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(27, 12, 35, 0.94),
            rgba(14, 6, 21, 0.94)
        );
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(25px);
}

.auth-form-card::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(0, 255, 135, 0.09);
    filter: blur(45px);
    pointer-events: none;
}

.auth-form-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 20%;
    left: 20%;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 255, 135, 0.72),
            transparent
        );
}

.auth-register-card {
    max-width: 510px;
}

.auth-form-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 135, 0.24);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(0, 255, 135, 0.15),
            rgba(105, 29, 137, 0.24)
        );
    font-size: 1.45rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.auth-form-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 7px;
    color: var(--auth-green);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.auth-form-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: var(--auth-text);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.auth-form-description {
    position: relative;
    z-index: 1;
    margin: 0 0 27px;
    color: var(--auth-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}


/* =========================================================
   ŰRLAPMEZŐK
   ========================================================= */

.auth-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.auth-field {
    min-width: 0;
}

.auth-field > label {
    display: inline-block;
    margin-bottom: 8px;
    color: #f4eef6;
    font-size: 0.84rem;
    font-weight: 750;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 15px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: #9d91a3;
    font-size: 0.92rem;
    pointer-events: none;
}

.auth-input-wrapper input,
.auth-input-wrapper select,
.auth-input-wrapper textarea {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 76px 0 47px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
    color: var(--auth-text);
    font-family: inherit;
    font-size: 0.94rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.auth-input-wrapper input::placeholder,
.auth-input-wrapper textarea::placeholder {
    color: #817687;
    opacity: 1;
}

.auth-input-wrapper input:hover,
.auth-input-wrapper select:hover,
.auth-input-wrapper textarea:hover {
    border-color: rgba(255, 255, 255, 0.19);
    background: rgba(255, 255, 255, 0.07);
}

.auth-input-wrapper input:focus,
.auth-input-wrapper select:focus,
.auth-input-wrapper textarea:focus {
    border-color: rgba(0, 255, 135, 0.82);
    background: rgba(0, 255, 135, 0.055);
    box-shadow:
        0 0 0 4px rgba(0, 255, 135, 0.11),
        0 12px 25px rgba(0, 0, 0, 0.2);
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--auth-green);
}

.auth-password-toggle {
    position: absolute;
    right: 9px;
    z-index: 3;
    height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: #d8cedb;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.auth-password-toggle:hover {
    border-color: rgba(0, 255, 135, 0.25);
    background: rgba(0, 255, 135, 0.1);
    color: var(--auth-green);
}


/* =========================================================
   SEGÉDSZÖVEG ÉS HIBÁK
   ========================================================= */

.auth-help-text {
    margin-top: 8px;
    color: #968a9c;
    font-size: 0.76rem;
    line-height: 1.5;
}

.auth-help-text ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.auth-field-errors {
    margin-top: 8px;
}

.auth-field-errors p {
    margin: 4px 0 0;
    color: #ff94a1;
    font-size: 0.78rem;
    line-height: 1.45;
}

.auth-error-box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 15px;
    border: 1px solid rgba(255, 97, 116, 0.3);
    border-radius: 14px;
    background: rgba(255, 97, 116, 0.08);
}

.auth-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255, 97, 116, 0.16);
    color: #ff8291;
    font-weight: 900;
}

.auth-error-box strong {
    display: block;
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 0.86rem;
}

.auth-error-box p {
    margin: 0;
    color: #d9bbc0;
    font-size: 0.78rem;
    line-height: 1.45;
}


/* =========================================================
   JOGI JELÖLŐNÉGYZETEK – REGISZTRÁCIÓ
   ========================================================= */

.legal-consent-fields {
    display: grid;
    gap: 10px;
    margin: 2px 0 4px;
}

.legal-consent-fields label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    color: #b9aebe;
    font-size: 0.79rem;
    line-height: 1.5;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.legal-consent-fields label:hover {
    border-color: rgba(0, 255, 135, 0.22);
    background: rgba(0, 255, 135, 0.045);
}

.legal-consent-fields input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--auth-green);
    cursor: pointer;
}

.legal-consent-fields a {
    color: var(--auth-green);
    font-weight: 800;
    text-decoration: none;
}

.legal-consent-fields a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   GOMBOK
   ========================================================= */

.auth-submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    margin-top: 2px;
    padding: 0 19px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(
            110deg,
            var(--auth-green),
            #00e8c2
        );
    color: #06140e;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 14px 30px rgba(0, 255, 135, 0.19),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.auth-submit-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 18px 36px rgba(0, 255, 135, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

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

.auth-submit-button span:last-child {
    font-size: 1.35rem;
    transition: transform 0.2s ease;
}

.auth-submit-button:hover span:last-child {
    transform: translateX(4px);
}

.auth-divider {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 24px 0 17px;
}

.auth-divider span {
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
}

.auth-divider p {
    margin: 0;
    color: #887d8e;
    font-size: 0.72rem;
    white-space: nowrap;
}

.auth-secondary-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 850;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.auth-secondary-link:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 135, 0.28);
    background: rgba(0, 255, 135, 0.07);
    color: var(--auth-green);
}

.auth-form-footer {
    position: relative;
    z-index: 1;
    margin: 17px 0 0;
    color: #807586;
    font-size: 0.74rem;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   BÖNGÉSZŐ AUTOMATIKUS KITÖLTÉS
   ========================================================= */

.auth-input-wrapper input:-webkit-autofill,
.auth-input-wrapper input:-webkit-autofill:hover,
.auth-input-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow:
        0 0 0 1000px #1b1020 inset,
        0 0 0 4px rgba(0, 255, 135, 0.08);
}


/* =========================================================
   ANIMÁCIÓ
   ========================================================= */

.auth-side-content {
    animation: authSlideLeft 0.55s ease both;
}

.auth-form-column {
    animation: authSlideRight 0.55s ease 0.06s both;
}

@keyframes authSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-22px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authSlideRight {
    from {
        opacity: 0;
        transform: translateX(22px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
    .auth-page {
        padding: 55px 0;
    }

    .auth-page-container {
        grid-template-columns: 1fr 420px;
        gap: 45px;
    }

    .auth-side-content h1 {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }

    .auth-example-match {
        gap: 14px;
        padding: 20px 17px;
    }

    .auth-form-card {
        padding: 32px;
    }
}


/* =========================================================
   MOBIL ÉS KISEBB TABLET
   ========================================================= */

@media (max-width: 850px) {
    .auth-page {
        padding: 45px 0 60px;
    }

    .auth-page-container {
        grid-template-columns: 1fr;
        gap: 38px;
        width: min(640px, calc(100% - 30px));
    }

    .auth-side-content {
        max-width: none;
    }

    .auth-form-column {
        justify-content: center;
    }

    .auth-form-card,
    .auth-register-card {
        max-width: 560px;
    }

    .auth-brand {
        margin-bottom: 26px;
    }
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 580px) {
    .auth-page {
        padding: 30px 0 45px;
    }

    .auth-page-container {
        width: min(100% - 22px, 520px);
        gap: 28px;
    }

    .auth-side-content h1 {
        font-size: 2.15rem;
        line-height: 1.08;
    }

    .auth-side-content > p {
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .auth-brand {
        margin-bottom: 22px;
    }

    .auth-benefit {
        padding: 14px;
    }

    .auth-benefit p {
        font-size: 0.8rem;
    }

    .auth-example-match {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
        text-align: center;
    }

    .auth-example-match > div:not(.auth-example-score),
    .auth-example-match > div:last-child {
        justify-content: center;
    }

    .auth-example-score {
        order: 2;
    }

    .auth-example-match > div:last-child {
        order: 3;
    }

    .auth-scoring-preview {
        grid-template-columns: 1fr;
    }

    .auth-scoring-preview > div {
        min-height: 90px;
    }

    .auth-scoring-preview > div:not(:last-child)::after {
        top: auto;
        right: 18px;
        bottom: 0;
        left: 18px;
        width: auto;
        height: 1px;
    }

    .auth-form-card {
        padding: 27px 20px;
        border-radius: 21px;
    }

    .auth-form-card h2 {
        font-size: 1.75rem;
    }

    .auth-input-wrapper input,
    .auth-input-wrapper select,
    .auth-input-wrapper textarea {
        height: 50px;
        padding-left: 43px;
        font-size: 0.88rem;
    }
}


/* =========================================================
   MOZGÁSCSÖKKENTÉS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .auth-side-content,
    .auth-form-column {
        animation: none;
    }

    .auth-benefit,
    .auth-submit-button,
    .auth-secondary-link {
        transition: none;
    }
}