
body {
    background: var(--color-bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 350px;
    background: #fff;
    border-radius: 2.5rem 1rem 2.5rem 1rem / 1rem 2.5rem 1rem 2.5rem; /* Liquid style */
    box-shadow: 0 8px 32px var(--color-border);
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.login-form label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.3rem;
    letter-spacing: 0.2px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 1.5rem;
    font-size: 1rem;
    background: #fafdff;
    color: var(--color-text);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.03);
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary)22;
}

.login-form button {
    width: 100%;
    padding: 0.8rem 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 var(--color-border);
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.login-form button:hover {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    box-shadow: 0 4px 16px 0 var(--color-border);
}

.login-form .error {
    color: var(--color-error);
    background: #fff0f0;
    border: 1px solid var(--color-error);
    padding: 0.7rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.98rem;
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    .login-container {
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        border-radius: 1.5rem;
        box-shadow: 0 2px 8px var(--color-border);
    }
    .login-container h2 {
        font-size: 1.3rem;
    }
    .login-form input[type="text"],
    .login-form input[type="password"] {
        font-size: 0.98rem;
        padding: 0.6rem 0.7rem;
    }
    .login-form button {
        font-size: 1rem;
        padding: 0.7rem 0;
    }
    table {
        font-size: 0.95rem;
    }
}

/* Responsive tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--color-border);
}
th, td {
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.7rem;
    text-align: left;
}
th {
    background-color: #f2f6ff;
    color: var(--color-primary);
    font-weight: 600;
}

@media (max-width: 800px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        display: none;
    }
    tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid var(--color-border);
    }
    td {
        position: relative;
        padding-left: 50%;
        min-height: 2.2em;
        border: none;
        border-bottom: 1px solid var(--color-border);
    }
    td:before {
        position: absolute;
        top: 0;
        left: 0.7rem;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        color: var(--color-secondary);
        content: attr(data-label);
    }
} 

/* Solución universal para evitar desbordes por padding/border */
*, *::before, *::after {
  box-sizing: border-box;
} 

.login-logo {
    width: 120px;
    margin-bottom: 1rem;
    display: block;
}
