@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

:root {
  /* --- PALETTE CONDIVISA --- */
  --bg-body: #f4ecd8;
  --bg-card: #fffef8;
  --text-main: #333333;
  --text-sub: #666666;
  --accent: #d35400; /* Arancione scuro / Ruggine */
  --accent-hover: #a04000;
  --border-radius: 12px;
  --shadow-card: 0 10px 25px rgba(0,0,0,0.1);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    font-family: Comfortaa, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh; /* Occupa tutta l'altezza dello schermo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

/* Contenitore Principale (La "Card") */
.login-container {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 400px; /* Larghezza massima */
    text-align: center;
    box-sizing: border-box;
}

/* Logo sopra il form */
.login-logo {
    width: 100%;
    height: 60px;
    background-image: url('/theme/images/banner.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 30px;
    opacity: 0.9;
}

.login-message {
    margin-bottom: 25px;
    color: var(--text-sub);
    font-size: 16px;
    font-weight: 500;
}

/* Stile degli Input */
form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spazio tra gli elementi */
}

label {
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-sub);
    margin-bottom: -10px; /* Avvicina la label all'input */
    margin-left: 2px;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box; /* Include padding nella larghezza */
    background-color: #fafafa;
    transition: all 0.2s;
}

input[type="text"]:focus, 
input[type="password"]:focus {
    border-color: var(--accent);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Bottone Login */
#loginbutton {
    margin-top: 10px;
    width: 100%;
    height: 45px;
    background-color: var(--accent);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#loginbutton:hover {
    background-color: var(--accent-hover);
}

#loginbutton:active {
    transform: scale(0.98);
}

/* --- COLORE SELEZIONE TESTO --- */
/* Fa diventare l'evidenziazione del colore del tuo tema invece che blu */
::selection {
    background: var(--accent); /* Prende il colore ruggine/arancio che hai impostato */
    color: #ffffff; /* Testo bianco per contrasto */
}

/* Supporto per Firefox */
::-moz-selection {
    background: var(--accent);
    color: #ffffff;
}