/* 
 * 1. ESTRUCTURA Y FONDO PANAL (MANTENIDO AL 100%)
 */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #f0f0f0;
    padding: 10px;
    background: radial-gradient(circle farthest-side at 0% 50%, #282828 23.5%, rgba(255, 170, 0, 0) 0) 21px 30px,
        radial-gradient(circle farthest-side at 0% 50%, #2c3539 24%, rgba(240, 166, 17, 0) 0) 19px 30px,
        linear-gradient(#282828 14%, rgba(240, 166, 17, 0) 0, rgba(240, 166, 17, 0) 85%, #282828 0) 0 0,
        linear-gradient(150deg, #282828 24%, #2c3539 0, #2c3539 26%, rgba(240, 166, 17, 0) 0, rgba(240, 166, 17, 0) 74%, #2c3539 0, #2c3539 76%, #282828 0) 0 0,
        linear-gradient(30deg, #282828 24%, #2c3539 0, #2c3539 26%, rgba(240, 166, 17, 0) 0, rgba(240, 166, 17, 0) 74%, #2c3539 0, #2c3539 76%, #282828 0) 0 0,
        linear-gradient(90deg, #2c3539 2%, #282828 0, #282828 98%, #2c3539 0%) 0 0 #282828;
    background-size: 40px 60px;
}

/* 
 * 2. ESTILO DEL LOGIN (ESTILO PRAASHOO7 RECUPERADO)
 */
.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 2.5em;
    background-color: #171717;
    border-radius: 25px;
    transition: .4s ease-in-out;
    box-shadow: 20px 20px 60px #080808, -5px -5px 20px #262626;
    max-width: 380px;
    width: 95%;
    margin: 50px auto;
}

#heading {
    text-align: center;
    margin: 1em 0;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}

/* Campos de entrada neomórficos[cite: 7] */
.field {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-radius: 25px;
    padding: 0.8em;
    background-color: #171717;
    box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

.input-icon {
    height: 1.3em;
    width: 1.3em;
    fill: #3498db;
}

.input-field {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    color: #d3d3d3;
    font-size: 16px;
    /* Evita zoom en iPhone */
}

/* Botones del Login[cite: 7] */
.form .btn {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.button1,
.button2,
.button3 {
    padding: 0.7em;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    width: 100%;
    background-color: #252525;
    color: white;
    transition: .4s;
    text-decoration: none;
    text-align: center;
}

.button1:hover {
    background-color: #2ecc71;
    color: #000;
}

.button2:hover {
    background-color: #3498db;
    color: #fff;
}

.button3:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* 
 * 3. MENÚ PRINCIPAL (ESTILO APP CELULAR[cite: 7])
 */
.app-menu-container {
    width: 95%;
    max-width: 400px;
    background: #171717;
    border-radius: 35px;
    padding: 30px 20px;
    box-shadow: 20px 20px 60px #080808, -5px -5px 20px #262626;
    margin: 20px auto;
    text-align: center;
}

.vertical-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* 
 * 4. BOTONES NEOMÓRFICOS (ESTILO UIVERSE[cite: 9])
 */
.button-nav {
    all: unset;
    cursor: pointer;
    position: relative;
    border-radius: 100em;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25), 0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1);
}

.button-inner {
    border-radius: inherit;
    padding: 1.1em 0.5em !important;
    background-image: linear-gradient(135deg, #e6e6e6, #b4b4b4);
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: inset(0 0 0 0 round 100em);
    box-shadow: inset -0.05em -0.05em 0.05em 0 rgba(5, 5, 5, 0.25), inset 0.025em 0.05em 0.1em 0 rgba(255, 255, 255, 1);
}

.button-inner span {
    font-weight: 600;
    font-size: 0.85rem;
    color: transparent;
    background-image: linear-gradient(135deg, #191919, #4b4b4b);
    -webkit-background-clip: text;
    background-clip: text;
}

/* 
 * 5. PANEL DE GESTIÓN MAESTRA (GRILLA ELÁSTICA[cite: 10])
 */
.admin-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.admin-card-elastic {
    flex: 1;
    min-width: 320px;
    background: rgba(33, 33, 33, 0.95);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #444;
}

@media (max-width: 600px) {
    .admin-card-elastic {
        min-width: 100%;
    }

    #clock {
        font-size: 0.8rem;
    }
}

#clock {
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 1rem;
    color: #f0f0f0;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 12px;
    border-radius: 10px;
    z-index: 1000;
}