 
/* ===== AMBIENT ===== */
.bg-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -160px;
    right: -120px;
    animation: float 22s ease-in-out infinite;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--primary-dark), transparent 70%);
    bottom: -120px;
    left: -120px;
    animation: float 26s ease-in-out infinite reverse;
}

@keyframes float {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(30px,-40px); }
}

/* ===== LOGIN CARD ===== */
.login-card {
    animation: fadeUp .6s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== TITOLI ===== */
.login-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-main);
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 34px;
}

/* ===== INPUT PRO ===== */
.form-floating-custom {
    position: relative;
    margin-bottom: 28px;
}

.form-floating-custom input {
    width: 100%;
    height: 62px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.10);
    padding: 22px 16px 22px 50px;
    font-size: 14px;
    background: #fff;
    transition: 0.25s ease;
}

/* ICON */
.form-floating-custom i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
    transition: 0.2s ease;
}

/* LABEL */
.form-floating-custom label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.2s ease;
}

/* FOCUS FIX (NO VIOLA) */
.form-floating-custom input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
    outline: none;
}

/* LABEL ACTIVE */
.form-floating-custom input:focus + label,
.form-floating-custom input:not(:placeholder-shown) + label {
    top: -12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border-radius: 8px;
}

/* ICON ACTIVE */
.form-floating-custom input:focus ~ i {
    color: var(--primary);
}

/* ===== BUTTON ===== */
.btn-login {
    height: 56px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 30px rgba(239,68,68,0.25);
    transition: 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 40px rgba(239,68,68,0.35);
}

/* ===== CHECKBOX ===== */
.form-check-custom {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-check-custom input {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(15,23,42,0.2);
    cursor: pointer;
    position: relative;
}

.form-check-custom input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-check-custom input:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===== COMMUNICATIONS FIXED ===== */
.login-comm-overlay {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 5;

    max-height: 45vh;
    overflow: hidden;

    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 16px;
    padding: 10px 0;
}

/* TRACK */
.login-comm-track {
    display: flex;
    flex-direction: column;
    gap: 12px;

    animation: commScroll 18s linear infinite;
    will-change: transform;
}

/* SCROLL */
@keyframes commScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* CARD */
.login-comm-slide {
    margin: 0 12px;
    padding: 12px 14px;

    border-radius: 12px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);

    color: #fff;
}

/* BADGE */
.login-comm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;

    color: var(--primary);
    margin-bottom: 6px;
}

/* TITLE */
.login-comm-slide h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* TEXT */
.login-comm-text {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.4;
}

/* PAUSE */
.login-comm-overlay:hover .login-comm-track {
    animation-play-state: paused;
}

/* MOBILE */
@media (max-width: 991px) {
    .login-comm-overlay {
        display: none;
    }
}