:root {
    --primary-color: #2196F3;
    --primary-hover: #1976D2;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --border-color: #e0e0e0;
    --text-color: #333;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: url('../imagenes/image.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 900px;
    position: relative;
}

/* Sección del logo a la izquierda */
.logo-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.login-logo {
    height: 300px; /* Alto fijo de 300px */
    width: auto; /* Mantiene la proporción */
}

/* Título centrado entre logo y formulario */
.login-container h1 {
    flex: 100%; /* Ocupa todo el ancho */
    text-align: center;
    margin: 10px 0;
    font-size: 2em;
    color: rgba(255, 255, 255);
    position: absolute;
    top: -60px; /* Ajustado para centrarlo visualmente */
    left: 0;
    right: 0;
}

/* Sección del formulario a la derecha */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.tipo-usuario {
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.botones-usuario {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.tipo-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-white);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tipo-btn:hover {
    background-color: var(--primary-hover);
    color: var(--bg-white);
}

.tipo-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 16px;
}

.input-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.input-group input:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

.submit-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    color: var(--bg-white);
    font-weight: bold;
    display: none;
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--error-color);
}

/* Media Query para pantallas pequeñas */
@media (max-width: 767px) {
    .login-container {
        flex-direction: column;
        margin: 10px;
        width: 90%;
        max-width: 100%;
    }

    .logo-section, .form-section {
        flex: 100%;
        min-width: 0;
    }

    .login-logo {
        height: 200px; /* Reduce el tamaño en pantallas pequeñas */
    }

    .login-container h1 {
        position: static; /* Vuelve al flujo normal */
        margin: 10px 0;
    }

    .botones-usuario {
        flex-direction: column;
        gap: 4px;
    }
}