/* --- GLOBAALI POHJA JA KESKITYS --- */
body {
    background-image: url('bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #121212;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* --- APULUOKKA PIILOTUKSELLE --- */
.piilotettu {
    display: none !important;
}

/* --- TYYLIKÄS BANNERI --- */
.banneri {
    width: 100%;
    height: 90px;
    background-image: url('banner.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
}

/* --- SOVELLUSKORTTI (CONTAINER) --- */
.holvi-kortti {
    background-color: rgba(22, 22, 22, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 170, 0, 0.25);
    border-radius: 16px;
    padding: 25px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    animation: avautuminen 0.3s ease-out;
}

@keyframes avautuminen {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- TEKSTIT --- */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #ffaa00;
    text-align: center;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
}

h1 { font-size: 24px; margin-bottom: 5px; }
h2 { font-size: 22px; margin-bottom: 20px; }
h3 { font-size: 18px; text-align: left; margin-bottom: 15px; }
h4 { font-size: 15px; text-align: left; margin-bottom: 10px; border-bottom: 1px solid #333; padding-bottom: 5px; }

.kuvaus {
    color: #aaaaaa;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* --- SYÖTTÖKENTÄT --- */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #1a1a1a;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #ffaa00;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
    background-color: #222222;
}

/* --- PAINIKKEET --- */
.nappula {
    width: 100%;
    padding: 12px;
    background-color: #ffaa00;
    color: #111111;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nappula:hover { background-color: #e09500; transform: translateY(-1px); }
.nappula:active { transform: translateY(1px); }

.nappi-oranssi { background-color: #ffaa00; color: #111111; }
.nappi-harmaa { background-color: #333333; color: #ffffff; }
.nappi-harmaa:hover { background-color: #444444; }
.nappi-vihrea { background-color: #218838; color: #ffffff; }
.nappi-vihrea:hover { background-color: #1e7e34; }
.nappi-sininen { background-color: #0069d9; color: #ffffff; }
.nappi-sininen:hover { background-color: #0056b3; }
.nappi-punainen { background-color: #c82333; color: #ffffff; }
.nappi-punainen:hover { background-color: #bd2130; }

.nappi-pieni {
    padding: 6px 12px;
    font-size: 13px;
    width: auto;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 0;
}

.nappi-rivi {
    display: flex;
    margin-bottom: 10px;
}
.nappi-rivi .nappula { flex: 1; }

/* --- LOMAKELAATIKKO --- */
.lomake-laatikko {
    background: rgba(0, 0, 0, 0.25);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #2d2d2d;
    margin-bottom: 20px;
}
.lomake-napit { display: flex; gap: 10px; }
.lomake-napit .nappula { margin-bottom: 0; }

/* --- HALLINTALOHKOT --- */
.hallinta-lohko {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #222;
}

/* --- SALASANARIVIT LISTALLA (KORJATTU ASETTELU) --- */
.salasana-rivi {
    background-color: #1c1c1c;
    border-left: 4px solid #ffaa00;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column; /* Pakottaa tekstit ylös ja napit alle */
    gap: 12px;
    border-top: 1px solid #252525;
    border-right: 1px solid #252525;
    border-bottom: 1px solid #252525;
}

.rivi-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rivi-info strong {
    font-size: 18px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
}

.rivi-info span {
    font-size: 14px;
    color: #aaaaaa;
    word-break: break-all;
}

.rivi-info code {
    color: #ffaa00;
    font-family: monospace;
    font-size: 15px;
    margin-top: 4px;
    background: #111;
    padding: 6px 10px;
    border-radius: 4px;
    width: fit-content;
    word-break: break-all;
}

.rivi-napit {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}

.rivi-napit .nappi-pieni {
    flex: 1;
    margin: 0 !important;
    padding: 10px 0 !important; /* Pakotetaan selkeä korkeus */
    font-size: 14px !important;
    text-align: center;
}