/* ==============================
   LAYOUT AUTH (login / register)
============================== */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* wrapper principale login/register */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    padding: 20px;
}

.auth-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
}

.auth-side {
    padding: 30px 32px;
}

/* lato sinistro */
.auth-side-left {
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    background: radial-gradient(circle at top left, rgba(59,130,246,0.16), transparent 55%);
    position: relative;
    overflow: hidden;
}

.auth-side-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(34,197,94,0.18), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.auth-title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #f9fafb;
    position: relative;
    z-index: 1;
}

.auth-subtitle {
    font-size: 14px;
    color: #cbd5f4;
    margin-bottom: 22px;
    max-width: 320px;
    position: relative;
    z-index: 1;
}

.auth-features {
    list-style: none;
    color: #9ca3af;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

/* lato destro */
.auth-side-right {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), rgba(15,23,42,0.96));
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card-inner {
    width: 100%;
    max-width: 340px;
}

.auth-form-title {
    font-size: 20px;
    color: #f9fafb;
    margin-bottom: 6px;
}

.auth-form-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

/* form auth */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

/* responsive auth */
@media (max-width: 840px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-side-left {
        display: none;
    }

    .auth-side-right {
        padding: 24px 22px;
    }

    .auth-card-inner {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 14px;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-form-title {
        font-size: 18px;
    }
}
