/* ==============================
   RESET BASE + BODY GENERALE
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #111827 0, #020617 40%, #000000 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

/* ==============================
   SFONDO ANIMATO
============================== */
.background-animation {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.circle-1 {
    width: 380px;
    height: 380px;
    background: #22c55e;
    top: -80px;
    left: -80px;
    animation: float1 14s infinite alternate ease-in-out;
}

.circle-2 {
    width: 420px;
    height: 420px;
    background: #3b82f6;
    bottom: -120px;
    right: -120px;
    animation: float2 18s infinite alternate ease-in-out;
}

.circle-3 {
    width: 260px;
    height: 260px;
    background: #f97316;
    top: 40%;
    left: 60%;
    animation: float3 20s infinite alternate ease-in-out;
}

@keyframes float1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 60px); }
}

@keyframes float2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, -40px); }
}

@keyframes float3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 40px); }
}

/* ==============================
   LOGO / BRANDING COMUNE
============================== */
.logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 25px rgba(34,197,94,0.7);
}

.logo-bot-dot {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: #0f172a;
    box-shadow: 0 0 0 3px rgba(15,23,42,0.6);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 18px;
    text-transform: uppercase;
    color: #e5e7eb;
}

.logo-main span {
    color: #22c55e;
}

.logo-sub {
    font-size: 12px;
    color: #9ca3af;
}

/* ==============================
   ALERT GLOBALI
============================== */
.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.alert-success {
    background: rgba(22,163,74,0.12);
    border: 1px solid rgba(74,222,128,0.6);
    color: #bbf7d0;
}

.alert-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* ==============================
   INPUT + LABEL
============================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    color: #e5e7eb;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #9ca3af;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 30px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #6b7280;
}

.input-wrapper input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 0 25px rgba(34, 197, 94, 0.25);
    background: rgba(15, 23, 42, 1);
}

/* ==============================
   BOTTONI GLOBALI
============================== */
.btn-primary {
    width: 100%;
    margin-top: 6px;
    position: relative;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #0f172a;
    background: linear-gradient(135deg, #22c55e, #22d3ee);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow:
        0 12px 30px rgba(34, 197, 94, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.8);
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-glow {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(255,255,255,0.6), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 40px rgba(34, 197, 94, 0.45),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    filter: brightness(1.03);
}

.btn-primary:hover .btn-glow {
    opacity: 0.6;
    transform: translateX(14px);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.99);
    box-shadow:
        0 10px 22px rgba(34, 197, 94, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* ==============================
   TESTO SOTTO FORM (auth)
============================== */
.auth-bottom-text {
    font-size: 13px;
    color: #9ca3af;
}

.auth-bottom-text a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 500;
}

.auth-bottom-text a:hover {
    text-decoration: underline;
}
