@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #e6f7fa;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper {
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    min-height: 520px; /* para mantener altura fija */
}

.container h2 {
    font-size: 24px;
    color: #004d4d;
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

button[type="submit"] {
    background: #00b4c5;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

:root {
  --color-fondo: #f0f8f8;
  --color-texto: #1a1a1a;
  --color-form: #ffffff;
  --color-boton: #00bcd4;
  --color-boton-texto: #ffffff;
}

body.dark-mode {
  --color-fondo: #121212;
  --color-texto: #e0e0e0;
  --color-form: #1e1e1e;
  --color-boton: #0097a7;
  --color-boton-texto: #ffffff;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}


.error-message {
    height: 20px; /* Reserva el espacio para evitar saltos */
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

button[type="submit"]:hover {
    background: #008fa0;
}

a {
    color: #00b4c5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

label {
    font-size: 14px;
    color: #333;
}

.checkbox-container {
    text-align: left;
    margin-top: 10px;
    font-size: 14px;
}

.container {
    background: white;
    padding: 30px 20px;
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

h2 {
    color: #006064;
    margin-bottom: 25px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 15px;
    margin: 10px 0;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #00acc1;
}
button {
    padding: 14px;
    background: #00acc1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background: #00838f;
}

a {
    color: #00acc1;
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-top: 15px;
    font-size: 14px;
}

.botonera {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.boton.desactivado {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    color: #666;
}

.boton {
    display: block;
    padding: 18px 10px;
    text-align: center;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease;
}

.boton:hover {
    transform: scale(1.05);
}

.azul    { background: #007BFF; }
.verde   { background: #28a745; }
.morado  { background: #6f42c1; }
.celeste { background: #17a2b8; }
.naranja { background: #fd7e14; }
.rojo    { background: #dc3545; }
