* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Espacio en los lados en versión móvil */
}

.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-form {
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    position: relative;
    margin: 0 auto;
    /* Centrado en pantallas pequeñas */
}

.login-content {
    max-width: 400px;
    margin: 0 auto;
}

.logo {
    height: 3.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.25rem;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #dc2626;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #b91c1c;
}

.submit-btn {
    background-color: #dc2626;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #b91c1c;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.register-link a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #b91c1c;
}

.hero-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    transform: skewX(-10deg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 31, 54, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 400px;
}

.hero-title {
    margin-bottom: 1rem;
}

.hero-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title p {
    font-size: 1.25rem;
    color: #f0f0f0;
}

.hero-description {
    font-size: 0.9rem;
    color: #e0e0e0;
    max-width: 20rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Ocultar imagen solo en teléfonos */
@media (max-width: 480px) {
    .hero-image {
        display: none;
    }

    .container {
        padding: 1rem;
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
    }

    .login-form {
        width: 100%;
        padding: 2rem;
        margin: 0 auto;
    }
}