* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: #e5e7eb;
}

.access-page {
    min-height: 100vh;
    padding: 32px 20px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* HEADER */

.access-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.access-logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.access-logo {
    height: 40px;
    width: auto;
}

.access-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.access-app-label {
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9ca3af;
}

.access-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.back-link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}

.back-link:hover {
    border-color: #22c55e;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

/* LINGUE */

.access-lang {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #9ca3af;
}

/* CARD PRINCIPALE */

.access-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    background: radial-gradient(circle at top left, #0b1120 0, #020617 55%);
    border-radius: 24px;
    padding: 22px 24px 24px;
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    border: 1px solid rgba(15, 23, 42, 0.9);
}

.access-column {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(30, 64, 175, 0.5);
}

.access-column h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.access-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 14px;
}

/* FORM */

.access-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-label {
    font-size: 13px;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-input {
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field-input::placeholder {
    color: #6b7280;
}

.field-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
    background: #020617;
}

/* BOTTONI */

.btn-primary {
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f9fafb;
    box-shadow:
        0 14px 30px rgba(22, 163, 74, 0.45),
        0 0 0 1px rgba(21, 128, 61, 0.7);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.btn-primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow:
        0 18px 40px rgba(22, 163, 74, 0.6),
        0 0 0 1px rgba(21, 128, 61, 0.8);
}

.btn-secondary {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.7),
        0 0 0 1px rgba(55, 65, 81, 0.9);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 1);
}

/* button row */
.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.small-note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* BARRA ERRORE */

.error-bar {
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.9);
    color: #fecaca;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .access-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .access-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
