/* ============================================================
   UGL Auth Modern — Layout split per auth, error, maintenance
   Font: Rubik · Palette: cyan UGL standard
   ============================================================ */

:root {
    --auth-cyan: #00A0DC;
    --auth-cyan-hover: #0088be;
    --auth-cyan-light: #2CA8FF;
    --auth-cyan-dark: #0077b6;
    --auth-ink: #0f172a;
    --auth-ink-soft: #334155;
    --auth-muted: #64748b;
    --auth-mute-soft: #94a3b8;
    --auth-border: #e2e8f0;
    --auth-border-soft: #f1f5f9;
    --auth-bg: #f8fafc;
    --auth-success: #10b981;
    --auth-success-bg: #ecfdf5;
    --auth-danger: #ef4444;
    --auth-danger-bg: #fef2f2;
    --auth-warning: #f59e0b;
    --auth-warning-bg: #fffbeb;
    --auth-radius-lg: 20px;
    --auth-radius-md: 12px;
    --auth-radius-sm: 8px;
    --auth-shadow-card: 0 20px 50px -20px rgba(15, 23, 42, 0.15);
    --auth-shadow-focus: 0 0 0 4px rgba(0, 160, 220, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--auth-ink);
    -webkit-font-smoothing: antialiased;
}

body.ugl-auth {
    min-height: 100vh;
    background: var(--auth-bg);
}

/* ------------------------------------------------------------
   Split layout
   ------------------------------------------------------------ */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 64px 72px;
    overflow: hidden;
}

.auth-brand-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auth-brand-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(9, 46, 102, 0.78) 0%, rgba(0, 119, 182, 0.70) 40%, rgba(0, 160, 220, 0.62) 72%, rgba(59, 130, 246, 0.58) 100%);
    z-index: 1;
    pointer-events: none;
}

.auth-brand-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 6.4s ease;
}

.auth-brand-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Vignette e luce sopra slider/overlay per leggibilità */
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 100%, rgba(0, 0, 0, 0.25) 0%, transparent 55%);
    pointer-events: none;
}

.auth-brand-top,
.auth-brand-middle,
.auth-brand-bottom {
    position: relative;
    z-index: 2;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    padding: 14px 22px;
    border-radius: 16px;
    box-shadow:
        0 10px 30px -8px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.25);
}

.auth-brand-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.auth-brand-claim {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.8px;
    max-width: 560px;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.auth-brand-sub {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 0 32px 0;
}

/* Feature tiles: cosa fa il gestionale (grid 2x2) */
.auth-brand-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 540px;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-brand-feature:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.3);
}

.auth-brand-feature-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.auth-brand-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.auth-brand-feature-text {
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.35;
    margin-top: 2px;
}

@media (max-width: 1200px) {
    .auth-brand-features {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}

/* Ruoli: strip orizzontale compatta con chip */
.auth-brand-roles-strip {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 540px;
}

.auth-brand-roles-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.70);
    white-space: nowrap;
}

.auth-brand-roles-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-brand-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-brand-chip:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.auth-brand-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.auth-brand-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-brand-meta-item i {
    opacity: 0.75;
}

.auth-brand-slider-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.auth-brand-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.auth-brand-slider-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.auth-brand-slider-dot:hover {
    transform: scale(1.08);
}

/* ------------------------------------------------------------
   Content panel (right side)
   ------------------------------------------------------------ */
.auth-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background: #fff;
    overflow: hidden;
}

/* Blob cyan ornamentale sfumato che aggiunge calore alla colonna destra */
.auth-content::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 160, 220, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-content::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 160, 220, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    animation: auth-fade-in 0.4s ease-out;
    z-index: 1;
}

@keyframes auth-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card-logo-mobile {
    display: none;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-card-logo-mobile img {
    height: 44px;
    width: auto;
}

.auth-card-header {
    margin-bottom: 36px;
}

.auth-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 160, 220, 0.08), rgba(44, 168, 255, 0.06));
    border: 1px solid rgba(0, 160, 220, 0.18);
    color: var(--auth-cyan-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
}

.auth-card-badge i {
    font-size: 11px;
}

.auth-card-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--auth-ink);
    margin: 0 0 10px 0;
    letter-spacing: -0.6px;
    line-height: 1.15;
}

.auth-card-sub {
    font-size: 15px;
    color: var(--auth-muted);
    margin: 0;
    line-height: 1.55;
}

/* ------------------------------------------------------------
   Form
   ------------------------------------------------------------ */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-ink-soft);
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.auth-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-md);
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--auth-ink);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
    color: var(--auth-mute-soft);
}

.auth-input:hover {
    border-color: #cbd5e1;
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-cyan);
    box-shadow: var(--auth-shadow-focus);
}

.auth-input.is-invalid {
    border-color: var(--auth-danger);
}

.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper .auth-input {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-mute-soft);
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-cyan);
    background: var(--auth-border-soft);
}

.auth-password-toggle:focus {
    outline: none;
    color: var(--auth-cyan);
}

.auth-password-toggle i {
    font-size: 16px;
}

.auth-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--auth-danger);
}

.auth-field-link {
    display: inline-block;
    font-size: 13px;
    color: var(--auth-cyan);
    font-weight: 500;
    text-decoration: none;
    margin-top: -4px;
    margin-bottom: 24px;
}

.auth-field-link:hover {
    color: var(--auth-cyan-hover);
    text-decoration: underline;
}

.auth-field-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: -4px;
    margin-bottom: 24px;
}

/* ------------------------------------------------------------
   Submit button
   ------------------------------------------------------------ */
.auth-btn {
    position: relative;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--auth-radius-md);
    background: linear-gradient(135deg, var(--auth-cyan) 0%, var(--auth-cyan-dark) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 16px -6px rgba(0, 160, 220, 0.4);
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(0, 160, 220, 0.55);
    filter: brightness(1.05);
}

.auth-btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.auth-btn:focus {
    outline: none;
    box-shadow: 0 6px 16px -6px rgba(0, 160, 220, 0.4), var(--auth-shadow-focus);
}

.auth-btn-ghost {
    background: transparent;
    color: var(--auth-cyan);
    border: 1.5px solid var(--auth-border);
}

.auth-btn-ghost:hover {
    background: var(--auth-border-soft);
    border-color: var(--auth-cyan);
    color: var(--auth-cyan-hover);
    box-shadow: none;
}

/* ------------------------------------------------------------
   Alerts
   ------------------------------------------------------------ */
.auth-alert {
    padding: 12px 16px;
    border-radius: var(--auth-radius-md);
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.auth-alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-alert-success {
    background: var(--auth-success-bg);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.auth-alert-danger {
    background: var(--auth-danger-bg);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert-warning {
    background: var(--auth-warning-bg);
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.auth-card-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border-soft);
    font-size: 12.5px;
    color: var(--auth-mute-soft);
    text-align: center;
}

.auth-card-footer a {
    color: var(--auth-cyan);
    text-decoration: none;
    font-weight: 500;
}

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

/* ------------------------------------------------------------
   Message variant (error pages, maintenance)
   ------------------------------------------------------------ */
.auth-message {
    text-align: center;
}

.auth-message-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 34px;
    color: #fff;
}

.auth-message-icon.is-cyan {
    background: linear-gradient(135deg, var(--auth-cyan), var(--auth-cyan-dark));
    box-shadow: 0 12px 30px -10px rgba(0, 160, 220, 0.5);
}

.auth-message-icon.is-danger {
    background: linear-gradient(135deg, var(--auth-danger), #b91c1c);
    box-shadow: 0 12px 30px -10px rgba(239, 68, 68, 0.5);
}

.auth-message-icon.is-warning {
    background: linear-gradient(135deg, var(--auth-warning), #b45309);
    box-shadow: 0 12px 30px -10px rgba(245, 158, 11, 0.5);
}

.auth-message-icon.is-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 12px 30px -10px rgba(59, 130, 246, 0.5);
}

.auth-message-code {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--auth-mute-soft);
    margin-bottom: 12px;
}

.auth-message-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--auth-ink);
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.auth-message-text {
    font-size: 15px;
    color: var(--auth-muted);
    margin: 0 0 28px 0;
    line-height: 1.6;
}

.auth-message-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--auth-radius-md);
    background: var(--auth-cyan);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-message-cta:hover {
    background: var(--auth-cyan-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(0, 160, 220, 0.5);
    text-decoration: none;
}

/* Progress bar (maintenance / in-lavorazione) */
.auth-progress {
    margin: 28px 0;
    height: 6px;
    background: var(--auth-border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.auth-progress-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--auth-cyan), var(--auth-cyan-light));
    animation: auth-progress-slide 2s ease-in-out infinite;
}

@keyframes auth-progress-slide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ------------------------------------------------------------
   Legal document layout
   ------------------------------------------------------------ */
body.ugl-legal {
    background: var(--auth-bg);
}

.legal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-topbar {
    background: #fff;
    border-bottom: 1px solid var(--auth-border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.legal-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--auth-ink);
}

.legal-topbar-brand img {
    height: 34px;
    width: auto;
}

.legal-topbar-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-ink);
}

.legal-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--auth-cyan);
    text-decoration: none;
    border: 1.5px solid var(--auth-border);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.legal-topbar-link:hover {
    border-color: var(--auth-cyan);
    background: var(--auth-border-soft);
    color: var(--auth-cyan-hover);
    text-decoration: none;
}

.legal-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 48px 24px 80px;
}

.legal-doc {
    width: 100%;
    max-width: 880px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-lg);
    padding: 56px 64px;
    box-shadow: var(--auth-shadow-card);
}

.legal-doc-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--auth-border-soft);
}

.legal-doc-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--auth-cyan);
    margin-bottom: 10px;
}

.legal-doc-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--auth-ink);
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.legal-doc-meta {
    font-size: 13px;
    color: var(--auth-muted);
}

.legal-doc-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--auth-ink-soft);
}

.legal-doc-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--auth-ink);
    margin: 36px 0 12px 0;
    letter-spacing: -0.2px;
}

.legal-doc-content h2:first-child {
    margin-top: 0;
}

.legal-doc-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--auth-ink);
    margin: 22px 0 8px 0;
}

.legal-doc-content p {
    margin: 0 0 14px 0;
}

.legal-doc-content ul,
.legal-doc-content ol {
    margin: 0 0 16px 0;
    padding-left: 22px;
}

.legal-doc-content li {
    margin-bottom: 6px;
}

.legal-doc-content strong {
    color: var(--auth-ink);
    font-weight: 600;
}

.legal-doc-content a {
    color: var(--auth-cyan);
    text-decoration: none;
    font-weight: 500;
}

.legal-doc-content a:hover {
    text-decoration: underline;
}

.legal-doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px 0;
    font-size: 14px;
}

.legal-doc-content th,
.legal-doc-content td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--auth-border);
    vertical-align: top;
}

.legal-doc-content th {
    background: var(--auth-border-soft);
    font-weight: 600;
    color: var(--auth-ink);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-doc-callout {
    padding: 16px 20px;
    background: var(--auth-border-soft);
    border-left: 3px solid var(--auth-cyan);
    border-radius: 0 var(--auth-radius-md) var(--auth-radius-md) 0;
    margin: 18px 0;
    font-size: 14px;
}

.legal-doc-callout strong {
    color: var(--auth-cyan-dark);
}

.legal-doc-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--auth-border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    font-size: 13px;
    color: var(--auth-muted);
}

.legal-doc-footer-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-doc-footer-nav a {
    color: var(--auth-cyan);
    text-decoration: none;
    font-weight: 500;
}

.legal-doc-footer-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-topbar {
        padding: 14px 20px;
    }
    .legal-topbar-brand-name {
        display: none;
    }
    .legal-main {
        padding: 24px 12px 48px;
    }
    .legal-doc {
        padding: 32px 24px;
    }
    .legal-doc-title {
        font-size: 26px;
    }
}

/* Footer links per auth layout (privacy/cookie/legal) */
.auth-legal-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--auth-mute-soft);
}

.auth-legal-links a {
    color: var(--auth-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-legal-links a:hover {
    color: var(--auth-cyan);
    text-decoration: underline;
}

.auth-legal-links span {
    color: var(--auth-border);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
        position: relative;
    }

    .auth-brand {
        display: flex;
        position: fixed;
        inset: 0;
        padding: 24px 20px;
        z-index: 0;
    }

    .auth-brand-top,
    .auth-brand-middle {
        display: none;
    }

    .auth-brand-bottom {
        margin-top: auto;
    }

    .auth-brand-meta {
        display: none;
    }

    .auth-brand-slider-dots {
        justify-content: center;
        margin-top: 0;
    }

    .auth-card-logo-mobile {
        display: flex;
    }

    .auth-content {
        position: relative;
        z-index: 1;
        padding: 40px 24px;
        background: transparent;
        min-height: 100vh;
    }

    .auth-card {
        max-width: 440px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 28px;
        padding: 28px 22px 24px;
        box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.38);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

@media (max-width: 576px) {
    .auth-content {
        padding: 32px 20px;
    }

    .auth-card {
        padding: 24px 18px 22px;
        border-radius: 24px;
    }

    .auth-card-title {
        font-size: 22px;
    }

    .auth-card-sub {
        font-size: 14px;
    }

    .auth-message-title {
        font-size: 22px;
    }

    .auth-input {
        height: 46px;
    }

    .auth-btn {
        height: 48px;
    }
}
