/* styles.css */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #111, #333);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #222;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    width: 95%;
    max-width: 420px;
    margin: 20px;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 20px;
}

p {
    text-align: center;
    font-size: 1rem;
    color: #ccc;
    margin: 5px 0 15px 0;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-size: 1.05rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    margin-bottom: 12px;
    background-color: #333;
    color: #fff;
    font-size: 1.05rem;
}

input[type="submit"] {
    background-color: #0f9d58;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #0c7f46;
}

.message {
    margin-top: 18px;
    text-align: center;
    font-size: 1rem;
}

@media (max-width: 768px) {
    html {
        font-size: 17px; /* Tamaño base ligeramente aumentado para legibilidad */
    }

    body {
        padding: 20px 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 32px 20px;
        border-radius: 0; /* Estilo más plano para ocupar toda la pantalla */
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 18px;
    }

    p {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    label {
        font-size: 1.2rem;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"] {
        font-size: 1.2rem;
        padding: 16px;
        margin-bottom: 16px;
    }

    input[type="submit"] {
        font-size: 1.25rem;
        padding: 18px;
    }

    .message {
        font-size: 1.1rem;
        margin-top: 22px;
    }
}

.players-list {
    margin-top: 35px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.players-list table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 1rem;
}

.players-list th, .players-list td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

.players-list th {
    background-color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    .players-list {
        font-size: 1.1rem;
        padding: 16px;
    }

    .players-list table,
    .players-list th,
    .players-list td {
        font-size: 1rem;
        padding: 8px;
    }
}

/* Botón de crear cuenta más discreto y estilizado */
button {
    background-color: #222; /* Fondo oscuro como el resto de la tarjeta */
    color: #ccc; /* Texto en gris claro */
    border: 1px solid #444; /* Borde tenue */
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: #333;
    color: #fff;
}

.progress-bar {
    width: 100%;
    background-color: #ddd;
    height: 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
}

