/* Estilos globales */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2F3783;
    font-family: 'Arial', sans-serif;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    margin: 20px;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

/* Estilos para el logo */
.logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    height: auto;
}

/* Centrar el subtítulo */
h2 {
    text-align: center;
}

/* Ajustar los inputs para que ocupen todo el ancho del contenedor */
.form-group {
    text-align: left;
    margin-bottom: 1rem;
}

input[type="text"], input[type="email"], input[type="tel"], select, input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, input[type="password"]:focus {
    border-color: #5D8BCB;
    outline: none;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Estilo para los botones */
.btn {
    width: 100%;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    background-color: #5D8BCB; /* Color de fondo celeste */
    color: white; /* Color del texto */
}

.btn:hover {
    background-color: #4A69A8; /* Color de fondo al pasar el ratón */
}

/* Asegurar color específico para .btn-success y .btn-primary */
.btn-success {
    background-color: #5D8BCB !important; /* Forzar color celeste */
    color: white !important; /* Forzar color del texto */
}

.btn-success:hover {
    background-color: #4A69A8 !important; /* Forzar color al pasar el ratón */
}

.btn-primary {
    background-color: #5D8BCB !important; /* Forzar color celeste */
    color: white !important; /* Forzar color del texto */
}

.btn-primary:hover {
    background-color: #4A69A8 !important; /* Forzar color al pasar el ratón */
}

/* Toast styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0.9;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
}

.toast.success {
    background-color: #5D8BCB;
}

.toast.error {
    background-color: #f44336;
}

/* Estilo para el contenedor oculto por defecto */
#authFormContainer {
    display: none;
}

/* Estilos responsivos */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        box-shadow: none;
    }

    .btn {
        font-size: 16px;
        padding: 12px 16px;
    }

    input[type="text"], input[type="email"], input[type="tel"], select, input[type="password"] {
        font-size: 14px;
        padding: 10px;
    }
}
