* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    flex-direction: column;
}

/* Blob decorativi */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}
body::before {
    width: 400px; height: 400px;
    background: #7b2fff;
    top: -100px; left: -100px;
}
body::after {
    width: 350px; height: 350px;
    background: #00d4ff;
    bottom: -80px; right: -80px;
}

nav {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: #fff; }
nav .nav-right { margin-left: auto; display: flex; gap: 20px; align-items: center; }
nav span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-wide { max-width: 900px; }

h1 { text-align: center; margin-bottom: 30px; font-size: 1.6rem; font-weight: 700; }
h2 { margin-bottom: 24px; font-size: 1.2rem; font-weight: 600; }

label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

input[type="text"],
input[type="password"] {
    width: 100%; padding: 11px 16px; margin-bottom: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px; color: #fff;
    font-size: 0.95rem; outline: none;
    transition: border-color 0.2s, background 0.2s;
}
input[type="text"]::placeholder,
input[type="password"]::placeholder { color: rgba(255,255,255,0.3); }
input:focus {
    border-color: rgba(123, 47, 255, 0.8);
    background: rgba(255,255,255,0.1);
}

input[type="submit"], .btn {
    display: inline-block;
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #7b2fff, #00d4ff);
    border: none; border-radius: 10px; color: #fff;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    text-decoration: none; text-align: center;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 6px;
}
input[type="submit"]:hover, .btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-red {
    background: linear-gradient(135deg, #ff2f2f, #ff8c00);
}

.error {
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.4);
    color: #ff8080; padding: 10px 14px;
    border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem;
}
.success {
    background: rgba(50, 255, 100, 0.1);
    border: 1px solid rgba(50, 255, 100, 0.3);
    color: #80ffaa; padding: 10px 14px;
    border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem;
}

table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th {
    background: rgba(123, 47, 255, 0.2);
    color: rgba(255,255,255,0.9);
    padding: 12px 16px; text-align: left; font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; color: rgba(255,255,255,0.75); }
tr:hover td { background: rgba(255,255,255,0.04); }

nav {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
}

nav .brand {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7b2fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: auto;
}

nav a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover { color: #fff; }
nav a.active { color: #fff; }

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 16px;
}