/* Auth shell — allineato al brand Exobyte (header + footer ufficiali) */
.auth-shell {
    --exo-ink: #111111;
    --exo-text: #4b4b4b;
    --exo-lime: #c4ef17;
    --exo-bg: #f7f7f4;
    --exo-panel: #ffffff;
    --exo-line: rgba(17, 17, 17, 0.1);
    --font-sans: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --primary-color: #111111;
    --section-color: #111111;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 70% 45% at 50% -8%, rgba(196, 239, 23, 0.16), transparent 55%),
        linear-gradient(180deg, #fbfbf8 0%, var(--exo-bg) 48%, #f0f0ea 100%);
    color: var(--exo-ink);
    font-family: var(--font-sans);
}

.auth-shell .btn-primary {
    --bs-btn-bg: #111111;
    --bs-btn-border-color: #111111;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 600;
}

.auth-shell .btn-outline-primary {
    --bs-btn-color: #111111;
    --bs-btn-border-color: rgba(17, 17, 17, 0.28);
    --bs-btn-hover-bg: #111111;
    --bs-btn-hover-border-color: #111111;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #111111;
    --bs-btn-active-border-color: #111111;
    --bs-btn-active-color: #fff;
    font-weight: 600;
}

.auth-shell .text-primary {
    color: #111111 !important;
}

/* Header */
.exo-auth-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--exo-line);
}

.exo-auth-header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}

.exo-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--exo-ink);
    line-height: 1;
}

.exo-auth-brand__logo {
    display: block;
    height: 18px;
    width: auto;
    max-width: min(42vw, 140px);
    object-fit: contain;
}

.exo-auth-brand__product {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--exo-text);
    border-left: 1px solid rgba(17, 17, 17, 0.16);
    padding-left: 0.75rem;
}

.exo-auth-nav {
    align-items: center;
    gap: 1.35rem;
}

.exo-auth-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--exo-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.exo-auth-nav a:hover {
    color: var(--exo-ink);
}

.exo-auth-header__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.exo-auth-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    border: 1px solid #111;
    background: #111;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.exo-auth-cta:hover {
    background: #fff;
    color: #111 !important;
}

.exo-auth-cta i {
    font-size: 0.85rem;
}

.exo-auth-menu-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--exo-line);
    border-radius: 10px;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.exo-auth-offcanvas__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.exo-auth-offcanvas__nav a {
    display: block;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    color: var(--exo-ink);
    text-decoration: none;
    font-weight: 500;
}

/* Main / card */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-intro {
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-intro__eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(196, 239, 23, 0.35);
    border: 1px solid rgba(17, 17, 17, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
}

.auth-intro__title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-intro__text {
    margin: 0.45rem 0 0;
    color: var(--exo-text);
    font-size: 0.95rem;
}

.auth-card {
    background: var(--exo-panel);
    border: 1px solid var(--exo-line);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.08);
    padding: 1.75rem;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #222;
}

.auth-card .form-control,
.auth-card .form-select {
    border-color: rgba(17, 17, 17, 0.14);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.auth-card .form-control::placeholder,
.auth-card .form-select::placeholder {
    color: rgba(17, 17, 17, 0.42);
    opacity: 1;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: #111;
    box-shadow: 0 0 0 0.2rem rgba(196, 239, 23, 0.35);
}

.auth-card-footer {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    text-align: center;
    font-size: 0.9rem;
    color: var(--exo-text);
}

.auth-card-footer a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: #888;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(17, 17, 17, 0.1);
}

/* Footer minimale */
.exo-auth-footer {
    width: 100%;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--exo-line);
}

.exo-auth-footer__inner {
    width: 100%;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.exo-auth-footer__left,
.exo-auth-footer__right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.exo-auth-footer__brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin-right: 0.25rem;
}

.exo-auth-footer__brand img {
    display: block;
    height: 14px;
    width: auto;
}

.exo-auth-footer__copy,
.exo-auth-footer__meta,
.exo-auth-footer__sep {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6a6a6a;
}

.exo-auth-footer__sep {
    color: #bbb;
}

.exo-auth-footer__right a {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b4b4b;
    text-decoration: none;
}

.exo-auth-footer__right a:hover {
    color: #111;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .auth-main {
        padding: 1.75rem 1rem 2.5rem;
        align-items: flex-start;
    }

    .exo-auth-header__inner {
        padding: 0.75rem 1rem;
    }

    .exo-auth-cta {
        display: none;
    }

    .exo-auth-offcanvas .exo-auth-cta {
        display: inline-flex;
    }

    .exo-auth-footer__inner {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
}
