/* Estilos base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.company-logo {
    max-width: 156px; /* Aumentado en un 30% (120px * 1.30) */
    height: auto;
}

/* Estilos para el Header y Reloj Centrados */
.header-container {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    margin: 0;
    font-size: 20px; /* Tamaño de fuente a 20px */
    display: inline-block;
}

.live-clock {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: #34495e;
    margin-top: 0.5rem;
    text-align: center; /* Centrar el texto del reloj */
}

.form-container {
    margin-top: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0c870;
    border-radius: 8px;
    font-size: 1.2rem;
    box-sizing: border-box;
    text-align: center;
    background-color: #fffbea;
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-group input:hover {
    border-color: #d4b854;
    box-shadow: 0 0 5px rgba(255, 235, 138, 0.5);
}

/* --- Estilos para Botones Más Grandes y Modernos --- */

.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem; /* Un poco menos de espacio entre ellos */
    margin-top: 1.5rem;
}

.btn {
    padding: 1.8rem; /* Aumentamos el padding vertical y horizontal */
    font-size: 1.5rem;  /* Hacemos el texto un poco más grande */
    font-weight: 700;   /* Letra más gruesa */
    border: none;
    border-radius: 10px; /* Bordes ligeramente más redondeados */
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    text-transform: uppercase; /* MAYÚSCULAS para un look más de "botón" */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.btn:hover {
    transform: translateY(-3px); /* Efecto de "levantarse" al pasar el ratón */
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(1px); /* Efecto de "pulsado" */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(45deg, #27ae60, #2ecc71); /* Gradiente para el verde */
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #c0392b, #e74c3c); /* Gradiente para el rojo */
    color: white;
}

.message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background-color: #eafaf1;
    color: #2ecc71;
}

.message.error {
    background-color: #fdeaea;
    color: #e74c3c;
}

.entries-container {
    margin-top: 2.5rem;
}

.entries-container h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.entries-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.entries-container th,
.entries-container td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.entrada-text {
    color: #2ecc71;
    font-weight: bold;
}

.salida-text {
    color: #e74c3c;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #777;
}

/* Teclado Virtual */
.simple-keyboard-container {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #e1e5ea;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.simple-keyboard-container.visible {
    display: block;
    transform: translateY(0);
}

.simple-keyboard.numeric-theme {
    max-width: 450px;
    margin: 0 auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.hg-theme-default .hg-button {
    height: 70px;
    font-size: 1.8rem;
    font-weight: bold;
    background: #ffffff;
    border-radius: 8px;
    border: none;
    border-bottom: 4px solid #b5b9bf;
    transition: all 0.1s ease;
}

.hg-theme-default .hg-button:active {
    background: #f0f0f0;
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.hg-theme-default .hg-button.hg-functionBtn[data-skbtn="{enter}"] {
    background: #2ecc71;
    color: white;
    border-bottom-color: #27ae60;
}

.hg-theme-default .hg-button.hg-functionBtn[data-skbtn="{enter}"]:active {
    background: #27ae60;
}

.hg-theme-default .hg-button.hg-functionBtn[data-skbtn="{bksp}"] {
    background: #f1c40f;
    color: white;
    border-bottom-color: #f39c12;
}

.hg-theme-default .hg-button.hg-functionBtn[data-skbtn="{bksp}"]:active {
    background: #f39c12;
}


@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .live-clock {
        align-self: stretch;
        text-align: center;
        font-size: 1.8rem;
    }
    .buttons {
        max-width: 100%;
        gap: 1rem;
    }
    .btn {
        padding: 1rem;
        font-size: 1rem;
    }
}
.oclock-logo {
    max-width: 100%;
    height: auto;
    width: 900px; /* Ajusta este valor según lo grande que lo necesites */
    display: block;
    margin: 0 auto 3px auto; /* Centrado y separación inferior */
}

@media screen and (max-width: 768px) {
    .oclock-logo {
        width: 150px; /* tamaño reducido en pantallas pequeñas */
    }
}

@media screen and (max-width: 480px) {
    .oclock-logo {
        width: 120px;
    }
}
/* === Improved Login Page Styles === */

/* Add a subtle animation for the card */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* New gradient background */
    background: #6a85b6;
    background: -webkit-linear-gradient(to right, #bac8e0, #6a85b6);
    background: linear-gradient(to right, #bac8e0, #6a85b6);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-card {
    max-width: 450px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.login-card .logo-container {
    margin-bottom: 1.5rem;
}

.login-card .company-logo {
    max-width: 180px; /* Más grande */
    border-radius: 8px; /* Bordes suaves, no circular */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.login-subtitle {
    color: #556270;
    margin-bottom: 2.5rem;
}

.login-form {
    text-align: left;
}

.login-form .input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Nuevo wrapper para la contraseña */
.password-wrapper {
    position: relative;
}

.password-wrapper #togglePassword {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.2s;
}

.password-wrapper #togglePassword:hover {
    color: #34495e;
}

.login-form .input-group label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.5rem;
    display: block;
}

.login-form .login-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    background-color: #fdfdfd !important;
    border: 2px solid #dfe6e9 !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: text !important;
    text-align: left !important;
}

.login-form .login-input:focus {
    border-color: #6a85b6 !important;
    box-shadow: 0 0 8px rgba(106, 133, 182, 0.3) !important;
    outline: none;
}

.login-button {
    width: 100%;
    padding: 1rem !important;
    margin-top: 1.5rem;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    color: #fff !important;
    background: #34495e !important;
    background: -webkit-linear-gradient(to right, #4a698c, #2c3e50) !important;
    background: linear-gradient(to right, #4a698c, #2c3e50) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-button:hover {
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

/* Improved Error Message */
.message.error {
    background-color: #ffdddd !important;
    color: #d8000c !important;
    border: 1px solid #d8000c;
    font-weight: 600;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: block !important; /* Ensure it's visible */
    opacity: 1 !important;
}

/* Privacy Notice on Clock-in screen */
.privacy-notice {
    font-size: 0.8rem;
    color: #6c757d; /* A muted gray color */
    text-align: center;
    margin: -0.5rem 0 1rem 0; /* Adjust margins to bring it closer to the elements */
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-notice .fa-info-circle {
    margin-right: 5px;
}

.consent-container {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #fffbea;
    border: 1px solid #e0c870;
    border-radius: 8px;
    text-align: center;
}
.consent-container h4 {
    margin-top: 0;
}
.consent-text {
    margin: 1rem 0;
    font-size: 0.9rem;
    text-align: left;
}
.consent-text label {
    display: inline;
}
.consent-text a {
    color: #007bff;
    text-decoration: none;
}
.consent-text a:hover {
    text-decoration: underline;
}