* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

body {
    /* Fondo oscuro como solicitaste */
    background-color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.login-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0,0,0,0.1); /* Sombra un poco más fuerte para destacar del fondo oscuro */
    width: 100%;
    max-width: 520px;
    padding: 8px 40px;
    position: relative;
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    margin-bottom: 16px;
}

    .logo img {
        width: 220px; /* Tamaño ajustado según la imagen de referencia */
        height: auto;
        display: block;
        margin: 0 auto;
    }

.company-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.company-tagline {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e2e8f0;
        z-index: 1;
    }

    .divider span {
        background: #ffffff;
        padding: 0 16px;
        color: #a0aec0;
        font-size: 13px;
        font-weight: 500;
        position: relative;
        z-index: 2;
    }

.instruction-text {
    text-align: center;
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #4a5568;
        font-weight: 600;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

    .form-control:focus {
        border-color: #3182ce;
        box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    }

    .form-control::placeholder {
        color: #a0aec0;
    }

.password-toggle-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .password-toggle:hover, .password-toggle:focus {
        color: #4a5568;
        outline: none;
    }

    .password-toggle svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember-me {
    display: flex;
    align-items: center;
}

    .remember-me input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        border: 1px solid #cbd5e0;
        border-radius: 4px;
        cursor: pointer;
        accent-color: #3182ce; /* Color del checkbox al estar activo */
    }

    .remember-me label {
        color: #4a5568;
        font-size: 14px;
        margin: 0;
        cursor: pointer;
        user-select: none;
    }

.forgot-password {
    color: #3182ce;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .forgot-password:hover {
        color: #2b6cb0;
        text-decoration: underline;
    }

.login-button {
    width: 100%;
    padding: 14px;
    background-color: #2d3748; /* Gris oscuro muy elegante */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

    .login-button:hover {
        background-color: #1a202c;
    }

    .login-button:active {
        transform: scale(0.98);
    }

.back-to-login {
    display: block;
    text-align: center;
    color: #3182ce;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .back-to-login:hover {
        color: #2b6cb0;
        text-decoration: underline;
    }

.footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #edf2f7;
    color: #a0aec0;
    font-size: 12px;
    line-height: 1.6;
}

/* Estilos para mensajes de error de validación (ASP.NET) */
.text-danger {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.validation-summary-errors {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 24px;
    color: #c53030;
    font-size: 14px;
}

    .validation-summary-errors ul {
        margin-left: 20px;
    }

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }
}
