/* Reset y base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%; /* fuerza altura total */
    font-family: Arial, sans-serif;
}

/* Contenedor de fondo completo */
.register-background {
    background: url('../media/background_login.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

/* Título */
h2 {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 20px;
    color: #4a4a4a;
}

/* Contenedor del formulario */
.register-container {
    max-width: 400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Campos de entrada */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

input:focus {
    border-color: #ce4b00;
    outline: none;
}

/* Botón */
button {
    background-color: #ce6e00;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ce4b00;
}

/* Enlace de inicio de sesión */
.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: #ce4b00;
    text-decoration: none;
    font-weight: bold;
}

/* Mensajes de error */
.error {
    color: #a80000;
    font-size: 13px;
    margin-top: -12px;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .register-container {
        padding: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 15px;
    }

    h2 {
        font-size: 1.2rem;
    }

    input {
        font-size: 13px;
    }
}
