/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    text-align: center;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    min-height: 100vh; /* altura mínima de toda la pantalla */
    display: flex; /* usamos flexbox para empujar el footer */
    flex-direction: column; /* contenido en columna */
}

/* Contenedor */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    flex: 1; /* ocupa todo el espacio disponible y empuja el footer abajo */
    width: 100%;
}

/* Menu */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.logo {
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 16px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

/* =========================
   HAMBURGER MENU
========================= */

/* ocultar checkbox */
#menu-toggle {
    display: none;
}

/* icono hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
    border-radius: 2px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        background: #0f172a;
        flex-direction: column;
        width: 200px;
        padding: 15px;
        border-radius: 12px;
        display: none;
    }

    /* cuando está activado el checkbox */
    #menu-toggle:checked + .hamburger + .nav-links {
        display: flex;
    }
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    color: #6b7280;
    padding: 20px;
}

/* =========================
   LOGIN
========================= */

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 30px 0;
}

.login-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0f172a;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 250px;
}

.login-form input,
.login-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    background: white;
}

.login-form--wide {
    width: 340px;
    max-width: 100%;
}

.segment-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.segment-block strong {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-mmss {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-mmss input {
    width: 70px !important;
}

.login-form button {
    padding: 10px;
    border: none;
    background: #0f172a;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.login-form button:hover {
    background: #1e293b;
}

/* Register link */
.register-link {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #0f172a;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}
.error-message {
    color: red;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

/* =========================
   FIX SAFARI iOS - date/time inputs
========================= */
input[type="date"],
input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #1f2937;
    min-height: 44px;
}