/* RESET E BASE */
* { box-sizing: border-box; }

body {
    background-color: #000;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.centered-layout { width: 100%; display: flex; justify-content: center; }

/* CONTENITORE LCARS */
.form-container {
    background-color: #0a0a0a;
    width: 95%;
    max-width: 700px;
    padding: 40px;
    border-left: 20px solid #00cfb4;
    border-radius: 0 40px 40px 0;
    border-top: 1px solid rgba(226, 86, 5, 0.8);
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    box-shadow: 0 25px 60px rgba(226, 86, 5, 0.8);
}

h1 {
    color: #00cfb4;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 30px 0;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

/* GRIGLIA */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    margin-bottom: 8px;
    color: #ff9d00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

input {
    width: 100%;
    padding: 12px;
    background-color: #050505;
    border: 1px solid #00cfb4;
    color: #ffffff;
    border-radius: 0 12px 0 12px;
    font-size: 0.95rem;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: #ff9d00;
    box-shadow: 0 0 10px rgba(255, 157, 0, 0.3);
}

/* PASSWORD WRAPPER */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #00cfb4;
    font-size: 1.1rem;
    z-index: 5;
}

/* BOTTONE */
.btn-save {
    background-color: #00cfb4;
    color: #000;
    padding: 16px;
    border: none;
    border-radius: 0 0 20px 0;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    width: 100%;
    margin-top: 10px;
    transition: 0.4s;
}

.btn-save:hover {
    background-color: #ff9d00;
    letter-spacing: 4px;
}

/* ERRORI */
.error-container { margin-bottom: 20px; }
.error-msg {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    padding: 10px;
    border: 1px solid #f44336;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.link-footer { margin-top: 25px; text-align: center; color: #777; }
.link-footer a { color: #ff9d00; text-decoration: none; font-weight: bold; }
.link-footer a:hover { color: #ffc400; text-decoration: none; font-weight: bold; letter-spacing: 1px; text-shadow: #ff9d00;}

/* RESPONSIVE */
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .form-container { padding: 25px; }
}