

:root {
    --bg: #030303;
    --card: #0c0c0c;
    --card-border: rgba(0, 255, 60, 0.18);
    --text: #ffffff;
    --muted: #b8b8b8;
    --accent: #10e000;
    --accent-dark: #0cb300;
    --input-bg: #111111;
    --input-border: #1d1d1d;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
}

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background:
        radial-gradient(circle at top center, rgba(16, 224, 0, 0.14), transparent 35%),
        linear-gradient(180deg, #050505 0%, #000000 100%);
}

.login-card {
    width: 100%;
    max-width: 390px;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px 20px 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(16, 224, 0, 0.2) 0%, rgba(16, 224, 0, 0) 70%);
    pointer-events: none;
}

.logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 110px;
    max-width: 42vw;
    height: auto;
    display: block;
    filter:
        drop-shadow(0 0 10px rgba(16, 224, 0, 0.25))
        drop-shadow(0 0 24px rgba(16, 224, 0, 0.18));
}

.login-card h1 {
    margin: 0;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.login-subtitle {
    margin: 8px 0 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.login-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ededed;
    margin-bottom: -6px;
}

.login-form input {
    width: 100%;
    appearance: none;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    border-radius: var(--radius-md);
    padding: 14px 14px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-form input::placeholder {
    color: #7d7d7d;
}

.login-form input:focus {
    border-color: rgba(16, 224, 0, 0.7);
    box-shadow: 0 0 0 4px rgba(16, 224, 0, 0.12);
    transform: translateY(-1px);
}

.login-form button {
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    padding: 15px 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(180deg, #1cff00 0%, #0fd800 100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 10px 24px rgba(16, 224, 0, 0.28);
}

.login-form button:active {
    transform: scale(0.98);
}

.login-form button:hover {
    box-shadow: 0 12px 28px rgba(16, 224, 0, 0.35);
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.92rem;
    position: relative;
    z-index: 1;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Ottimizzazione mobile stretta */
@media (max-width: 360px) {
    .login-card {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }

    .login-logo {
        width: 90px;
    }

    .login-card h1 {
        font-size: 1.55rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .login-form input,
    .login-form button {
        font-size: 0.96rem;
    }
}

/* Versione leggermente più ampia */
@media (min-width: 480px) {
    .login-card {
        padding: 34px 26px 28px;
    }

    .login-logo {
        width: 125px;
    }
}
