/*
 * tpl_veilborn — Login, registrazione e recupero account
 */

body.vb-auth-body .vb-shell-main {
    padding-top: 0;
    padding-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.vb-auth-body .vb-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 72px);
}

body.vb-auth-body .vb-content-col {
    display: flex;
    flex: 1;
    width: 100%;
}

body.vb-auth-body .vb-component {
    flex: 1;
    display: flex;
    width: 100%;
}

body.vb-auth-body .vb-footer { margin-top: auto; }

body.vb-auth-body .vb-aside,
body.vb-auth-body .vb-hero-pos,
body.vb-auth-body .vb-content-top,
body.vb-auth-body .vb-content-bottom,
body.vb-auth-body .vb-bottom {
    display: none !important;
}

.vb-auth {
    --auth-panel: #12081f;
    --auth-border: rgba(167, 139, 250, 0.35);
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    min-height: calc(100vh - 72px);
}

.vb-auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2.5rem;
    background:
        url('../images/hero-veil.svg') center/cover no-repeat,
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(124, 58, 237, 0.25), transparent 65%),
        linear-gradient(165deg, #1a0a32 0%, #0c0818 55%, #05040a 100%);
    border-right: 1px solid var(--auth-border);
    overflow: hidden;
}

.vb-auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 4, 10, 0.3), rgba(5, 4, 10, 0.75));
    pointer-events: none;
}

.vb-auth-aside > * { position: relative; z-index: 1; }

.vb-auth-logo {
    width: clamp(72px, 9vw, 88px);
    height: clamp(72px, 9vw, 88px);
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 28px rgba(124, 58, 237, 0.55));
}

.vb-auth-aside .vb-depth-frame {
    width: clamp(72px, 9vw, 88px);
    height: clamp(72px, 9vw, 88px);
    max-width: 88px;
    max-height: 88px;
    border-radius: 50%;
}

.vb-auth-aside .vb-depth-frame img,
.vb-auth-aside img.vb-auth-logo {
    width: clamp(72px, 9vw, 88px) !important;
    height: clamp(72px, 9vw, 88px) !important;
    max-width: 88px !important;
    max-height: 88px !important;
    object-fit: contain;
    transform: none;
}

.vb-auth-aside h1 {
    margin: 0 0 .75rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(180deg, #f5f3ff, var(--vb-mist));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vb-auth-aside p {
    margin: 0;
    max-width: 320px;
    color: var(--vb-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.vb-auth-badge {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: .35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.45);
    background: rgba(124, 58, 237, 0.15);
    color: var(--vb-mist);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.vb-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem);
    background: linear-gradient(180deg, rgba(12, 8, 24, 0.6), rgba(5, 4, 10, 0.9));
}

.vb-auth-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, rgba(26, 10, 50, 0.95), rgba(12, 8, 24, 0.98));
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.12);
}

.vb-auth-card h2 {
    margin: 0 0 .35rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: #f5f3ff;
}

.vb-auth-card .vb-auth-lead {
    margin: 0 0 1.75rem;
    color: var(--vb-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.vb-auth-card .form-label,
.vb-auth-card label,
.vb-auth-card legend {
    color: #ede9fe !important;
    font-weight: 600;
    font-size: .88rem;
}

.vb-auth-card .form-control,
.vb-auth-card input[type="text"],
.vb-auth-card input[type="email"],
.vb-auth-card input[type="password"],
.vb-auth-card select,
.vb-auth-card textarea {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: rgba(0, 0, 0, 0.35);
    color: #f5f3ff;
    font-size: 1rem;
}

.vb-auth-card .form-control:focus,
.vb-auth-card input:focus {
    outline: none;
    border-color: var(--vb-mist);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.vb-auth-card .btn-primary {
    width: 100%;
    margin-top: .5rem;
    padding: .85rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--vb-violet-2);
    background: linear-gradient(135deg, var(--vb-violet), #5b21b6);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.vb-auth-card .btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, var(--vb-violet));
    transform: translateY(-1px);
    color: #fff !important;
}

.vb-auth-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(167, 139, 250, 0.15);
}

.vb-auth-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    color: var(--vb-text);
    font-size: .92rem;
    font-weight: 600;
}

.vb-auth-links a:hover {
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(124, 58, 237, 0.12);
    color: #fff;
}

.vb-auth-links a.vb-auth-link-accent { border-color: rgba(167, 139, 250, 0.35); color: var(--vb-mist); }
.vb-auth-links a::after { content: "→"; opacity: .6; }

.vb-auth-back {
    display: inline-flex;
    margin-top: 1.25rem;
    color: var(--vb-muted);
    font-size: .88rem;
}

.vb-auth-back:hover { color: #f5f3ff; }

.vb-auth-card .page-header h1 { display: none; }
.vb-auth-card .com-users-login__options { display: none; }

@media (max-width: 900px) {
    .vb-auth { grid-template-columns: 1fr; min-height: auto; }
    .vb-auth-aside { border-right: 0; border-bottom: 1px solid var(--auth-border); padding: 2rem 1.5rem; }
    .vb-auth-panel { padding: 1.75rem 1.15rem 2.5rem; }
}
